Skip to content
Snippets Groups Projects
Commit c7a17a89 authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

feat: Add conditional to support both autofs, fstab mnts

Closes rc/hpc-factory#175
parent 5f3cdb39
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
# nfs_mounts related # nfs_mounts related
enable_nfs_mounts: true enable_nfs_mounts: true
use_autofs: false use_autofs: false
use_fstab: false
mount_points: mount_points:
- { "src": "master:/gpfs4", "path": "/gpfs4", "opts": "ro,sync,hard", "mode": "0755" } - { "src": "master:/gpfs4", "path": "/gpfs4", "opts": "ro,sync,hard", "mode": "0755" }
- { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "ro,sync,hard", "mode": "0755" } - { "src": "master:/gpfs5", "path": "/gpfs5", "opts": "ro,sync,hard", "mode": "0755" }
......
--- ---
- name: nfs_mounts using fstab - name: nfs_mounts using fstab
include_tasks: fstab.yml include_tasks: fstab.yml
when: not use_autofs when: use_fstab
- name: nfs_mounts using autofs - name: nfs_mounts using autofs
include_tasks: autofs.yml include_tasks: autofs.yml
......
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