diff --git a/ansible/roles/ldap_client/tasks/sshd.yaml b/ansible/roles/ldap_client/tasks/sshd.yaml index 3fc8b9a..16f1312 100644 --- a/ansible/roles/ldap_client/tasks/sshd.yaml +++ b/ansible/roles/ldap_client/tasks/sshd.yaml @@ -2,7 +2,7 @@ lineinfile: state: present path: /etc/ssh/sshd_config - regexp: '^#?AuthorizedKeysCommand' + regexp: '^#AuthorizedKeysCommand' line: 'AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys' notify: restart sshd @@ -10,7 +10,7 @@ lineinfile: state: present path: /etc/ssh/sshd_config - regexp: '^#?AuthorizedKeysCommandUser' + regexp: '^#AuthorizedKeysCommandUser' line: 'AuthorizedKeysCommandUser nobody' notify: restart sshd