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,18 @@
---
- name: "Restart sshd"
- name: "Restart the ssh service"
listen: "Restart ssh"
when: ansible_os_family == 'Debian'
ansible.builtin.service:
name: ssh
state: restarted
enabled: true
daemon_reload: true
- name: "Restart the sshd service"
listen: "Restart ssh"
when: ansible_os_family == 'RedHat'
ansible.builtin.service:
name: sshd
state: restarted
enabled: true
daemon_reload: true