evolinux-base: simplify sshd syntax validation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jérémy Lecour 2020-03-12 17:04:02 +01:00 committed by Jérémy Lecour
parent a18076e878
commit 4ad785abaf

View file

@ -93,7 +93,7 @@
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config
regexp: '^PermitRootLogin (yes|without-password|prohibit-password)' regexp: '^PermitRootLogin (yes|without-password|prohibit-password)'
replace: "PermitRootLogin no" replace: "PermitRootLogin no"
validate: '/usr/sbin/sshd -T -f %s' validate: '/usr/sbin/sshd -t -f %s'
notify: reload sshd notify: reload sshd
when: evolinux_root_disable_ssh when: evolinux_root_disable_ssh