Skip to content
Snippets Groups Projects
Commit 36770705 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Fixed nfs client

parent 70c572f6
No related branches found
No related tags found
No related merge requests found
---
nfs_server: "nfsserver.edu"
nfs_type: "nfs"
nfs_options: "vers=3,noatime,rsize=16384,wsize=16384,hard,intr,tcp,nolock"
---
- name: restart authentication
shell: authconfig --updateall
when: nfs_type == "nfs4"
sudo: true
- name: restart idmap
service: name={{ item }} state=restarted
with_items:
- rpcbind
- rpcidmapd
when: nfs_type == "nfs4"
sudo: true
---
dependencies:
- {role: nfs-common }
---
-
mount: "name={{ item.0 }} src={{ nfs_server }}:{{ item.1 }} fstype=nfs opts=vers=3,noatime,rsize=16384,wsize=16384,hard,intr,tcp,nolock state=mounted"
mount: "name={{ item.0 }} src={{ nfs_server }}:{{ item.1 }} fstype={{ nfs_type }} opts={{ nfs_options }} state=mounted"
name: "Mounting NFS mounts"
with_together:
- destDir
- srcDir
notify: "restart authentication"
notify: "restart idmap"
sudo: true
......@@ -5,3 +5,4 @@
- bind-utils
- nfs-utils
yum: "name={{ item }} state=latest"
sudo: true
---
dependencies:
- {role: nfs-common }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment