mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
35 lines
762 B
YAML
35 lines
762 B
YAML
---
|
|
|
|
- name: Create product user for mapping
|
|
user:
|
|
name: "{{ atl_product_user }}"
|
|
comment: "Product runtime user"
|
|
|
|
- name: Create mountpoint
|
|
file:
|
|
path: "{{ atl_shared_mountpoint }}"
|
|
state: directory
|
|
|
|
- name: Setup the disk partition
|
|
parted:
|
|
device: "{{ atl_nfs_server_device }}"
|
|
label: gpt
|
|
name: "{{ atl_nfs_fs_label }}"
|
|
number: 1
|
|
flags:
|
|
- "{{ atl_nfs_fs_type }}"
|
|
|
|
|
|
- name: Create the filesystem
|
|
filesystem:
|
|
dev: "{{ atl_nfs_server_device }}"
|
|
fstype: "{{ atl_nfs_fs_type }}"
|
|
opts: "-L {{ atl_nfs_fs_label }}"
|
|
|
|
- name: Setup fstab and mount the filesystem
|
|
mount:
|
|
path: "{{ atl_shared_mountpoint }}"
|
|
src: "LABEL={{ atl_nfs_fs_label }}"
|
|
fstype: "{{ atl_nfs_fs_type }}"
|
|
state: mounted
|