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

make nfs-client compatible with stretch

parent c6ba5ad9
......@@ -4,8 +4,8 @@
- name: restart autofs
service: name=autofs state=restarted
- name: restart nfs-common
service: name=nfs-common state=restarted
- name: restart nfs-client
service: name=nfs-client.target state=restarted
- name: reload sysctl
command: sysctl -p
......@@ -29,19 +29,31 @@
- nfs-client
- 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
notify:
- restart nfs-common
- restart nfs-client
- restart autofs
tags:
- nfs-client
- 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
shell: echo "N" > /sys/module/nfs/parameters/nfs4_disable_idmapping
notify:
- restart nfs-common
- restart nfs-client
- restart autofs
tags:
- nfs-client
......@@ -74,7 +86,7 @@
- config
- name: ensure nfs-common is enabled
service: name=nfs-common state=running enabled=yes
service: name=nfs-client.target state=running enabled=yes
tags:
- nfs-client
- 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