Compare commits
1 commit
main
...
sshd-passw
Author | SHA1 | Date | |
---|---|---|---|
Reynir Björnsson | c266a55213 |
|
@ -2,3 +2,4 @@
|
||||||
- import_tasks: upgrade.yml
|
- import_tasks: upgrade.yml
|
||||||
- import_tasks: base.yml
|
- import_tasks: base.yml
|
||||||
- import_tasks: users.yml
|
- import_tasks: users.yml
|
||||||
|
- import_tasks: sshd.yml
|
||||||
|
|
6
roles/ubuntu_base/tasks/sshd.yml
Normal file
6
roles/ubuntu_base/tasks/sshd.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
- name: Disallow ssh password login
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/ssh/sshd_config
|
||||||
|
line: "PasswordAuthentication no"
|
||||||
|
regexp: "^#?PasswordAuthentication "
|
Loading…
Reference in a new issue