ansible/roles/ubuntu_base/tasks/sshd.yml

7 lines
164 B
YAML
Raw Permalink Normal View History

2020-12-13 14:25:21 +00:00
---
- name: Disallow ssh password login
lineinfile:
path: /etc/ssh/sshd_config
line: "PasswordAuthentication no"
regexp: "^#?PasswordAuthentication "