diff options
author | 2024-07-18 00:53:24 +0100 | |
---|---|---|
committer | 2024-07-19 20:39:08 +0100 | |
commit | b2fa18562561c3105f2501dec2b8dcbdb359f9a7 (patch) | |
tree | e89c1400e5d777d412ddd99321ea7640c8f8688a | |
parent | Update Wireguard to only template for netcup hosts (diff) |
Update SSH role to handle both Rocky and Debian reloads
-rw-r--r-- | ansible/roles/ssh/handlers/main.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ansible/roles/ssh/handlers/main.yml b/ansible/roles/ssh/handlers/main.yml index 7b582d9..34f7a64 100644 --- a/ansible/roles/ssh/handlers/main.yml +++ b/ansible/roles/ssh/handlers/main.yml @@ -1,7 +1,16 @@ --- -- name: Reload ssh +- name: Reload ssh (Debian) service: name: ssh state: reloaded + when: ansible_distribution == "Debian" + tags: + - role::ssh + +- name: Reload sshd (Rocky) + service: + name: sshd + state: reloaded + when: ansible_distribution == "Rocky" tags: - role::ssh |