WIP: Disallow ssh passwords #50

Draft
reynir wants to merge 1 commit from sshd-password into main
2 changed files with 7 additions and 0 deletions

View file

@ -2,3 +2,4 @@
- import_tasks: upgrade.yml
- import_tasks: base.yml
- import_tasks: users.yml
- import_tasks: sshd.yml

View file

@ -0,0 +1,6 @@
---
- name: Disallow ssh password login
lineinfile:
path: /etc/ssh/sshd_config
line: "PasswordAuthentication no"
regexp: "^#?PasswordAuthentication "