]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/nfs-client/tasks/main.yml
nfs-client: Make role compatible with newer Debian releases
[AnsibleRoles.git] / roles / nfs-client / tasks / main.yml
index 949c2e28acd73e89309f26a7354571a253d817bf..b00c2233fbf16ee690fdc0a8796b635a21ee9fcd 100644 (file)
@@ -7,7 +7,7 @@
   template: >
     dest=/etc/idmapd.conf
     group=root
-    mode=644
+    mode=0644
     owner=root
     src=idmapd.conf.j2
   notify:
     name=nfs-common
     state=installed
 
-- 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 < '8'"