diff --git a/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml b/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml index d33c2416..8c7a0e9a 100644 --- a/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml +++ b/roles/mgrote.deactivate_ssh_password_login/tasks/main.yml @@ -6,5 +6,5 @@ regexp: '#PasswordAuthentication yes' line: 'PasswordAuthentication no' state: present - validate: "/usr/sbin/sshd -T" + validate: "/usr/sbin/sshd -T -f %s" notify: restart_sshd