Commit 097945f8 authored by Lars Beckers's avatar Lars Beckers

make nfs-client compatible with stretch

parent c6ba5ad9
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
- name: restart autofs - name: restart autofs
service: name=autofs state=restarted service: name=autofs state=restarted
- name: restart nfs-common - name: restart nfs-client
service: name=nfs-common state=restarted service: name=nfs-client.target state=restarted
- name: reload sysctl - name: reload sysctl
command: sysctl -p command: sysctl -p
...@@ -29,19 +29,31 @@ ...@@ -29,19 +29,31 @@
- nfs-client - nfs-client
- packages - packages
- name: ensure the nfs-common service is configured for nfs4 - name: ensure the nfs-client service is configured for nfs4
copy: src=nfs-common dest=/etc/default/nfs-common owner=root group=root mode=0644 copy: src=nfs-common dest=/etc/default/nfs-common owner=root group=root mode=0644
notify: notify:
- restart nfs-common - restart nfs-client
- restart autofs - restart autofs
tags: tags:
- nfs-client - nfs-client
- config - config
- name: ensure nfs module is loaded
modprobe: name=nfs state=present
tags:
- nfs-client
- config
- name: ensure nfs module is loaded after a reboot
copy: content="nfs" dest=/etc/modules-load.d/nfs.conf
tags:
- nfs-client
- config
- name: ensure we use the idmapper - name: ensure we use the idmapper
shell: echo "N" > /sys/module/nfs/parameters/nfs4_disable_idmapping shell: echo "N" > /sys/module/nfs/parameters/nfs4_disable_idmapping
notify: notify:
- restart nfs-common - restart nfs-client
- restart autofs - restart autofs
tags: tags:
- nfs-client - nfs-client
...@@ -74,7 +86,7 @@ ...@@ -74,7 +86,7 @@
- config - config
- name: ensure nfs-common is enabled - name: ensure nfs-common is enabled
service: name=nfs-common state=running enabled=yes service: name=nfs-client.target state=running enabled=yes
tags: tags:
- nfs-client - nfs-client
- service - service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment