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

feat: update structure of mount_points variable

Now as a dictionary that includes:
- src: mount source
- path: mount path
- opts: mount options
parent ae41ed0c
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": "rw,sync,hard" }
- { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "rw,sync,hard" }
#SSH Host Keys
S3_ENDPOINT: ""
......
---
- name: Create base directories
ansible.builtin.file:
path: "{{ item }}"
path: "{{ item.path }}"
state: directory
mode: '0755'
loop:
......@@ -9,9 +9,9 @@
- 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