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

@@ -1,7 +1,7 @@
---
- name: "Configure AllowUsers"
when: sshd_allow_users is defined
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?\s*AllowUsers\s+'
@@ -10,7 +10,7 @@
- name: "Configure AllowGroups"
when: sshd_allow_groups is defined
notify: Restart sshd
notify: "Restart ssh"
ansible.builtin.lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?\s*AllowGroups\s+'