fix ssh handler

This commit is contained in:
2026-03-19 16:53:45 -05:00
parent 40ab77f061
commit 9ad585681f

View File

@@ -1,7 +1,6 @@
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# FILE: roles/common/handlers/main.yml # FILE: roles/common/handlers/main.yml
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
- name: restart chrony - name: restart chrony
systemd: systemd:
name: chrony name: chrony
@@ -9,5 +8,5 @@
- name: restart sshd - name: restart sshd
systemd: systemd:
name: sshd name: "{{ 'ssh' if ansible_os_family == 'Debian' else 'sshd' }}"
state: restarted state: restarted