Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
samba
Commits
097945f8
Commit
097945f8
authored
Oct 10, 2017
by
Lars Beckers
Browse files
make nfs-client compatible with stretch
parent
c6ba5ad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
nfs-client/handlers/main.yml
View file @
097945f8
...
...
@@ -4,8 +4,8 @@
-
name
:
restart autofs
service
:
name=autofs state=restarted
-
name
:
restart nfs-c
ommon
service
:
name=nfs-c
ommon
state=restarted
-
name
:
restart nfs-c
lient
service
:
name=nfs-c
lient.target
state=restarted
-
name
:
reload sysctl
command
:
sysctl -p
nfs-client/tasks/main.yml
View file @
097945f8
...
...
@@ -29,19 +29,31 @@
-
nfs-client
-
packages
-
name
:
ensure the nfs-c
ommon
service is configured for nfs4
-
name
:
ensure the nfs-c
lient
service is configured for nfs4
copy
:
src=nfs-common dest=/etc/default/nfs-common owner=root group=root mode=0644
notify
:
-
restart nfs-c
ommon
-
restart nfs-c
lient
-
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-c
ommon
-
restart nfs-c
lient
-
restart autofs
tags
:
-
nfs-client
...
...
@@ -74,7 +86,7 @@
-
config
-
name
:
ensure nfs-common is enabled
service
:
name=nfs-c
ommon
state=running enabled=yes
service
:
name=nfs-c
lient.target
state=running enabled=yes
tags
:
-
nfs-client
-
service
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment