]> git.phdru.name Git - ansible.git/commitdiff
Feat(sshd): In Debian the service is called `ssh`, otherwise `sshd`
authorOleg Broytman <phd@phdru.name>
Sat, 31 Aug 2019 19:40:16 +0000 (22:40 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 31 Aug 2019 19:40:16 +0000 (22:40 +0300)
playbooks/debian/init-system2.yml
playbooks/roles/sshd/handlers/main.yml

index f28026d855f29fc796334c46272d193f7e053597..0a02e3123f83a01d33ac1c4102d04bd2867ed303 100644 (file)
@@ -1,6 +1,6 @@
 - name: Setup Debain system - part 2
   hosts: "{{ hosts | default('all') }}"
-  gather_facts: false
+  gather_facts: true
   roles:
     - init-system2
     - remove-systemd
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