ansible/roles/ubuntu_base/tasks/sshd.yml

7 lines
164 B
YAML

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