Skip to content

Commit

Permalink
Merge pull request #23 from punktDe/sshd-fix
Browse files Browse the repository at this point in the history
Use sshd service name if not targeting Debian-based systems
  • Loading branch information
medanthelinium authored Dec 16, 2024
2 parents b9b1ccc + 91914a4 commit eb061b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb061b0

Please sign in to comment.