]> 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 7abf4e03e478f3a4b15aedb9aa4e16ace74acae7..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:
@@ -19,7 +19,7 @@
     - packages
   apt: >
     name=nfs-common
-    state=installed
+    state=present
 
 - name: ensure service "nfs-common" is enabled and started
   tags:
@@ -29,3 +29,4 @@
     enabled=yes
     name=nfs-common
     state=started
+  when: "ansible_distribution_major_version|int < 8"