+ support for sshd_config.d where not used

This commit is contained in:
2022-10-27 17:54:02 +02:00
parent 1fd7dac374
commit d282fe416b

View File

@@ -12,6 +12,18 @@
enabled: yes enabled: yes
state: started state: started
- name: system setup | openssh | create config dir
file:
path: "/etc/ssh/sshd_config.d"
state: directory
- name: system setup | openssh | include sshd config dir in configuration
lineinfile:
path: "/etc/ssh/sshd_config"
line: "Include /etc/ssh/sshd_config.d/*.conf"
state: present
insertbefore: "^Port.*$"
- name: system setup | openssh | copy sshd custom config - name: system setup | openssh | copy sshd custom config
tags: openssh,ssh,system,settings tags: openssh,ssh,system,settings
copy: copy: