Fix handlers

This commit is contained in:
Alexander Gorelyshev
2026-06-08 14:14:09 +04:00
parent b87da747a7
commit 37222f515e
7 changed files with 24 additions and 13 deletions

View File

@@ -31,7 +31,7 @@
validate: /usr/sbin/sshd -t -f %s
- name: "Restrictions | toggle PAM"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?UsePAM'
@@ -39,7 +39,7 @@
validate: sshd -f %s -t
- name: "Restrictions | ensure the SSHD config is restricted to the root user"
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.file:
path: /etc/ssh/sshd_config
owner: root