]> arthur.barton.de Git - AnsibleRoles.git/commitdiff
"sshd": Add support for Ubuntu
authorAlexander Barton <alex@barton.de>
Wed, 11 Nov 2015 15:11:42 +0000 (16:11 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 11 Nov 2015 15:11:42 +0000 (16:11 +0100)
roles/sshd/tasks/main.yml

index 684d88c377e2a504011a71cf891d0be702668af2..df042dc416f7fbf5d803a012d6e38c05d7b3cd9d 100644 (file)
@@ -11,7 +11,7 @@
   with_items:
     - openssh-blacklist-extra
     - ssh
-  when: "ansible_distribution == 'Debian'"
+  when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
 
 - name: ensure service "ssh" is enabled and running
   tags:
@@ -21,7 +21,7 @@
     enabled=yes
     name=ssh
     state=running
-  when: "ansible_distribution == 'Debian'"
+  when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
 
 - name: ensure service "sshd" is enabled and running
   tags:
@@ -31,4 +31,4 @@
     enabled=yes
     name=sshd
     state=running
-  when: "ansible_distribution != 'Debian'"
+  when: "ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu'"