diff --git a/tasks/sshd_config.yml b/tasks/sshd_config.yml index ab61f7e..4054ae6 100644 --- a/tasks/sshd_config.yml +++ b/tasks/sshd_config.yml @@ -52,8 +52,8 @@ - lineinfile: path: /etc/ssh/sshd_config insertbefore: BOF - regexp: '^\s*include\s+/etc/ssh/sshd_config.d/' - line: 'include /etc/ssh/sshd_config.d/*.conf' + regexp: '^\s*[iI]nclude\s+/etc/ssh/sshd_config.d/' + line: 'Include /etc/ssh/sshd_config.d/*.conf' firstmatch: true tags: sshd - when: 'false == sshd_include_option'