DCD-386: Add role to mount NFS server on nodes.

This commit is contained in:
Steve Smith
2019-05-30 13:13:59 +10:00
parent 09b4760621
commit 2f9358301b
3 changed files with 20 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
---
- name: Create mountpoint
file:
state: directory
path: "{{ atl_shared_mountpoint }}"
mode: 0755
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
- name: Enable mountpoint in fstab
mount:
path: "{{ atl_shared_mountpoint }}"
src: "{{ atl_fileserver_host }}:{{ atl_shared_mountpoint }}"
fstype: nfs
opts: "rw,nfsvers=4,_netdev"
state: mounted