+ support for sshd_config.d where not used

This commit is contained in:
rene committed 2022-10-27 17:54:02 +02:00
1 parent 1fd7dac374
commit d282fe416b
1 file changed
+12
+12
View File
@@ -12,6 +12,18 @@
enabled: yes
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
tags: openssh,ssh,system,settings
copy: