]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/sshd/tasks/main.yml
Use "service: state=started" instead of "running"
[AnsibleRoles.git] / roles / sshd / tasks / main.yml
index df042dc416f7fbf5d803a012d6e38c05d7b3cd9d..587de2e0a04f29f74795561c501a04eca1ec81a8 100644 (file)
     - ssh
   when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
 
-- name: ensure service "ssh" is enabled and running
+- name: ensure service "ssh" is enabled and started
   tags:
     - services
     - sshd
   service: >
     enabled=yes
     name=ssh
-    state=running
+    state=started
   when: "ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'"
 
-- name: ensure service "sshd" is enabled and running
+- name: ensure service "sshd" is enabled and started
   tags:
     - services
     - sshd
   service: >
     enabled=yes
     name=sshd
-    state=running
+    state=started
   when: "ansible_distribution != 'Debian' and ansible_distribution != 'Ubuntu'"