diff --git a/tasks/admin_users.yml b/tasks/admin_users.yml index 8a7c625cea010e5645c9229a6c44403cb709048e..1bdefb117280c2d5cd5615bb26902d7f1aefa407 100644 --- a/tasks/admin_users.yml +++ b/tasks/admin_users.yml @@ -9,5 +9,5 @@ - name: Disable Password Authentication for ssh.usage ansible.builtin.replace: path: /etc/ssh/sshd_config - regex: PasswordAuthentication + regexp: PasswordAuthentication replace: 'PasswordAuthentication no\1'