mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-386: Add role to mount NFS server on nodes.
This commit is contained in:
17
roles/nfs_mount/tasks/main.yml
Normal file
17
roles/nfs_mount/tasks/main.yml
Normal 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
|
||||
Reference in New Issue
Block a user