+ support for sshd_config.d where not used
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user