forked from evolix/ansible-roles
evolinux-base: simplify sshd syntax validation
This commit is contained in:
parent
a18076e878
commit
4ad785abaf
|
@ -93,7 +93,7 @@
|
|||
dest: /etc/ssh/sshd_config
|
||||
regexp: '^PermitRootLogin (yes|without-password|prohibit-password)'
|
||||
replace: "PermitRootLogin no"
|
||||
validate: '/usr/sbin/sshd -T -f %s'
|
||||
validate: '/usr/sbin/sshd -t -f %s'
|
||||
notify: reload sshd
|
||||
when: evolinux_root_disable_ssh
|
||||
|
||||
|
|
Loading…
Reference in a new issue