Use full path in config validation consistently

This commit is contained in:
Alexander Gorelyshev
2026-06-08 14:15:09 +04:00
parent 37222f515e
commit b246eae017
4 changed files with 8 additions and 8 deletions

View File

@@ -36,7 +36,7 @@
path: /etc/ssh/sshd_config
regexp: '^#?UsePAM'
line: "UsePAM {{ sshd_disable_pam | ternary('no', 'yes') }}"
validate: sshd -f %s -t
validate: /usr/sbin/sshd -t -f %s
- name: "Restrictions | ensure the SSHD config is restricted to the root user"
notify: "Restart ssh"