Skip to content
Snippets Groups Projects
Commit ba3c1c13 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'feat-nfs-mount-opt' into 'feat-hpc-factory'

Feat make mount opts as variable

See merge request !139
parents c50a63e8 929e9d2d
No related branches found
No related tags found
2 merge requests!139Feat make mount opts as variable,!117This MR merges the feat-hpc-factory branch, which was focused on building and deploying proxy images for the COD cluster.
......@@ -30,8 +30,8 @@
# nfs_mounts related
use_autofs: false
mount_points:
- /gpfs4
- /gpfs5
- { "src": "master:/gpfs4", "path": "/gpfs4", "opts": "ro,sync,hard", "mode": "0755" }
- { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "ro,sync,hard", "mode": "0755" }
#SSH Host Keys
S3_ENDPOINT: ""
......
---
- name: Create base directories
ansible.builtin.file:
path: "{{ item }}"
path: "{{ item.path }}"
state: directory
mode: '0755'
mode: "{{ item.mode }}"
loop:
"{{ mount_points }}"
- name: Mount the directories
ansible.posix.mount:
src: "master:{{ item }}"
path: "{{ item }}"
opts: rw,sync,hard
src: "{{ item.src }}"
path: "{{ item.path }}"
opts: "{{ item.opts }}"
state: mounted
fstype: nfs
loop:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment