diff --git a/roles/ssh-password-login/tasks/main.yml b/roles/ssh-password-login/tasks/main.yml index 4564015a709ca37d13aa78683d0c08ee0e4f6100..d2f18c544ad304ab52049b0dbc73f5f9b4f3e948 100644 --- a/roles/ssh-password-login/tasks/main.yml +++ b/roles/ssh-password-login/tasks/main.yml @@ -10,19 +10,7 @@ - restart sshd - restart ssh -- name: "Enable Challenge Response" - lineinfile: - args: - dest: /etc/ssh/sshd_config - regexp: "PasswordAuthentication no" - line: "PasswordAuthentication yes" - backrefs: yes - sudo: true - notify: - - restart sshd - - restart ssh - -- name: "Disable Challenge Response" +- name: "Disable Password" lineinfile: args: dest: /etc/ssh/sshd_config