forked from evolix/ansible-roles
evolinux-users: Handle "PermitRootLogin prohibit-password"
This commit is contained in:
parent
1c244f556b
commit
1091dfeeed
|
@ -3,7 +3,7 @@
|
||||||
- name: disable root login
|
- name: disable root login
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/ssh/sshd_config
|
dest: /etc/ssh/sshd_config
|
||||||
regexp: '^PermitRootLogin (yes|without-password)'
|
regexp: '^PermitRootLogin (yes|without-password|prohibit-password)'
|
||||||
replace: "PermitRootLogin no"
|
replace: "PermitRootLogin no"
|
||||||
notify: reload sshd
|
notify: reload sshd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue