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