Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
samba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infra
ansible-shared
samba
Commits
097945f8
Commit
097945f8
authored
7 years ago
by
Lars Beckers
Browse files
Options
Downloads
Patches
Plain Diff
make nfs-client compatible with stretch
parent
c6ba5ad9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nfs-client/handlers/main.yml
+2
-2
2 additions, 2 deletions
nfs-client/handlers/main.yml
nfs-client/tasks/main.yml
+16
-4
16 additions, 4 deletions
nfs-client/tasks/main.yml
with
18 additions
and
6 deletions
nfs-client/handlers/main.yml
+
2
−
2
View file @
097945f8
...
@@ -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-c
ommon
-
name
:
restart nfs-c
lient
service
:
name=nfs-c
ommon
state=restarted
service
:
name=nfs-c
lient.target
state=restarted
-
name
:
reload sysctl
-
name
:
reload sysctl
command
:
sysctl -p
command
:
sysctl -p
This diff is collapsed.
Click to expand it.
nfs-client/tasks/main.yml
+
16
−
4
View file @
097945f8
...
@@ -29,19 +29,31 @@
...
@@ -29,19 +29,31 @@
-
nfs-client
-
nfs-client
-
packages
-
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
copy
:
src=nfs-common dest=/etc/default/nfs-common owner=root group=root mode=0644
notify
:
notify
:
-
restart nfs-c
ommon
-
restart nfs-c
lient
-
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-c
ommon
-
restart nfs-c
lient
-
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-c
ommon
state=running enabled=yes
service
:
name=nfs-c
lient.target
state=running enabled=yes
tags
:
tags
:
-
nfs-client
-
nfs-client
-
service
-
service
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment