diff --git a/handlers/main.yaml b/handlers/main.yaml index 1ee8fbc..cea3820 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -7,7 +7,7 @@ - name: Restart sshd when: (lookup('env', 'GITHUB_ACTIONS') | length) == 0 ansible.builtin.service: - name: ssh + name: "{{ 'ssh' if ansible_os_family == 'Debian' else 'sshd' }}" state: restarted - name: Reload systemd units