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 @@ ...@@ -30,8 +30,8 @@
# nfs_mounts related # nfs_mounts related
use_autofs: false use_autofs: false
mount_points: mount_points:
- /gpfs4 - { "src": "master:/gpfs4", "path": "/gpfs4", "opts": "ro,sync,hard", "mode": "0755" }
- /gpfs5 - { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "ro,sync,hard", "mode": "0755" }
#SSH Host Keys #SSH Host Keys
S3_ENDPOINT: "" S3_ENDPOINT: ""
......
--- ---
- name: Create base directories - name: Create base directories
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item.path }}"
state: directory state: directory
mode: '0755' mode: "{{ item.mode }}"
loop: loop:
"{{ mount_points }}" "{{ mount_points }}"
- name: Mount the directories - name: Mount the directories
ansible.posix.mount: ansible.posix.mount:
src: "master:{{ item }}" src: "{{ item.src }}"
path: "{{ item }}" path: "{{ item.path }}"
opts: rw,sync,hard opts: "{{ item.opts }}"
state: mounted state: mounted
fstype: nfs fstype: nfs
loop: 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