Files
dc-deployments-automation/roles/nfs_mount/tasks/main.yml
2019-05-30 13:13:59 +10:00

18 lines
405 B
YAML

---
- 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