summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2017-03-06 23:12:51 +0000
committerKevin Fenzi <kevin@scrye.com>2017-03-06 23:12:51 +0000
commit960e39e9fbdcd987196866b62844eb26e385a2f5 (patch)
treebf8480bbfb9ba1533a6f7b2f8b5a4d8a0010bbf5
parenta63ff7fc1eb40240da11bdce7eb166e806cb1bf0 (diff)
downloadansible-960e39e9fbdcd987196866b62844eb26e385a2f5.tar.gz
ansible-960e39e9fbdcd987196866b62844eb26e385a2f5.tar.xz
ansible-960e39e9fbdcd987196866b62844eb26e385a2f5.zip
change method to static, add restart handler for nfs-idmapd and use it
-rw-r--r--handlers/restart_services.yml3
-rw-r--r--roles/nfs/client/files/idmapd.conf2
-rw-r--r--roles/nfs/client/tasks/main.yml2
3 files changed, 6 insertions, 1 deletions
diff --git a/handlers/restart_services.yml b/handlers/restart_services.yml
index 5290ecaac..a7c6ae20e 100644
--- a/handlers/restart_services.yml
+++ b/handlers/restart_services.yml
@@ -170,3 +170,6 @@
- name: flush journald tmpfiles to persistent store
command: pkill -f -USR1 systemd-journald
+
+- name: restart idmapd
+ service: name=nfs-idmapd state=restarted
diff --git a/roles/nfs/client/files/idmapd.conf b/roles/nfs/client/files/idmapd.conf
index b9ade0f18..8bfb7629c 100644
--- a/roles/nfs/client/files/idmapd.conf
+++ b/roles/nfs/client/files/idmapd.conf
@@ -28,7 +28,7 @@ Domain = fedoraproject.org
# is a dynamically loadable plugin library.
# New methods may be defined and inserted in the list.
# The default is "nsswitch".
-Method = nsswitch
+Method = static
# Optional. This is a comma-separated, ordered list of
# translation methods to be used for translating GSS
diff --git a/roles/nfs/client/tasks/main.yml b/roles/nfs/client/tasks/main.yml
index 7dc80d914..4ec58617c 100644
--- a/roles/nfs/client/tasks/main.yml
+++ b/roles/nfs/client/tasks/main.yml
@@ -3,6 +3,8 @@
copy: src=idmapd.conf dest=/etc/idmapd.conf
tags:
- nfs/client
+ notify:
+ - restart idmapd
- name: route config for netapp network
copy: src=route-eth1.{{ datacenter }} dest=/etc/sysconfig/network-scripts/route-eth1