DCD-386: Create and mount FS for share.

This commit is contained in:
Steve Smith
2019-05-29 15:47:46 +10:00
parent 9faa3b4e07
commit 17d3207992
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
---
- 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