]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/sshd/handlers/main.yml
Feat(sshd): In Debian the service is called `ssh`, otherwise `sshd`
[ansible.git] / playbooks / roles / sshd / handlers / main.yml
index 9ec20b584553bfd0ed1c37d8223f2d4a41e042d8..264fd314a50a8545dc730f2d868d32eb0c9ddaf1 100644 (file)
@@ -1,5 +1,5 @@
 - name: Reload sshd
   become: true
   service:
-    name: ssh
+    name: "ssh{{ ansible_facts.distribution != 'Debian' and 'd' or '' }}"
     state: reloaded