]> 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 46087efcc6ff0fc801bd24acd4e8c45256d54646..320c683f73f9d96e70008c2404397e39f6806ff7 100644 (file)
@@ -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"