Skip to content

Commit a71d9a8

Browse files
jovialpriteau
andcommitted
Fix dropin directory creation (#631)
* Fix dropin directory creation *.conf was mistaken included in this path. * Clarify naming of extra configuration files --------- Co-authored-by: Pierre Riteau <[email protected]>
1 parent 05f93e4 commit a71d9a8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ansible/roles/sshd/tasks/configure.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33

44
- name: Ensure drop in directory exists
55
file:
6-
path: /etc/ssh/sshd_config.d/*.conf
6+
path: /etc/ssh/sshd_config.d/
77
state: directory
88
owner: root
99
group: root
1010
mode: 700
1111
become: true
1212

13-
- name: Ensure drop in directory is included
13+
- name: Ensure drop in configuration is included
1414
blockinfile:
1515
dest: /etc/ssh/sshd_config
16-
content: |
17-
# To modify the system-wide sshd configuration, create a *.conf file under
18-
# /etc/ssh/sshd_config.d/ which will be automatically included below
16+
content: |
17+
# To modify the system-wide sshd configuration, create <custom>.conf
18+
# files under /etc/ssh/sshd_config.d/ which will be automatically
19+
# included below.
1920
Include /etc/ssh/sshd_config.d/*.conf
2021
state: present
2122
insertafter: "# default value."

0 commit comments

Comments
 (0)