--- - name: Disallow ssh password login lineinfile: path: /etc/ssh/sshd_config line: "PasswordAuthentication no" regexp: "^#?PasswordAuthentication "