Handle "PermitRootLogin prohibit-password"

This commit is contained in:
Jérémy Lecour 2017-10-10 23:50:14 +02:00
parent ae4b9675c2
commit 20e8a852fa

View file

@ -83,7 +83,7 @@
- name: disable SSH access for root
replace:
dest: /etc/ssh/sshd_config
regexp: '^PermitRootLogin (yes|without-password)'
regexp: '^PermitRootLogin (yes|without-password|prohibit-password)'
replace: "PermitRootLogin no"
notify: reload sshd
when: evolinux_root_disable_ssh