1 2 3 4 5 6 7 8
--- - hosts: all gather_facts: false tasks: - name: ensure SSH login with password is disabled lineinfile: dest=/etc/ssh/sshd_config line='PasswordAuthentication no'