Handle "PermitRootLogin prohibit-password"
This commit is contained in:
parent
ae4b9675c2
commit
20e8a852fa
|
@ -83,7 +83,7 @@
|
||||||
- name: disable SSH access for root
|
- name: disable SSH access for root
|
||||||
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
|
||||||
when: evolinux_root_disable_ssh
|
when: evolinux_root_disable_ssh
|
||||||
|
|
Loading…
Reference in a new issue