mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
23 lines
521 B
YAML
23 lines
521 B
YAML
---
|
|
|
|
- name: Create the filesystem if necessary
|
|
filesystem:
|
|
dev: "{{ atl_nfs_server_device }}"
|
|
fstype: "{{ atl_nfs_fs_type }}"
|
|
opts:
|
|
- "-L {{ atl_nfs_fs_label }}"
|
|
|
|
- name: Create mountpoint
|
|
file:
|
|
path: "{{ atl_shared_mountpoint }}"
|
|
state: directory
|
|
mode: 0750
|
|
owner: "{{ atl_product_user }}"
|
|
group: "{{ atl_product_user }}"
|
|
|
|
- name: Setup fstab and mount the filesystem
|
|
mount:
|
|
path: "{{ atl_shared_mountpoint }}"
|
|
src: "{{ atl_nfs_server_device }}:/"
|
|
state: mounted
|