forked from data.coop/ansible
Disallow ssh passwords
This commit is contained in:
parent
e9f1d800a1
commit
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