evolinux-users: Handle "PermitRootLogin prohibit-password"

This commit is contained in:
Jérémy Lecour 2017-10-11 22:17:52 +02:00
parent 1c244f556b
commit 1091dfeeed

View file

@ -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