]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/nfs-client/tasks/main.yml
Use integer comparision when dealing with "ansible_distribution_major_version"
[AnsibleRoles.git] / roles / nfs-client / tasks / main.yml
index 949c2e28acd73e89309f26a7354571a253d817bf..320c683f73f9d96e70008c2404397e39f6806ff7 100644 (file)
@@ -7,7 +7,7 @@
   template: >
     dest=/etc/idmapd.conf
     group=root
-    mode=644
+    mode=0644
     owner=root
     src=idmapd.conf.j2
   notify:
     - packages
   apt: >
     name=nfs-common
-    state=installed
+    state=present
 
-- name: ensure service "nfs-common" is enabled and running
+- name: ensure service "nfs-common" is enabled and started
   tags:
     - nfs
     - services
   service: >
     enabled=yes
     name=nfs-common
-    state=running
+    state=started
+  when: "ansible_distribution_major_version|int < 8"