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

Create dirs before mounting NFS share on them.

Mount points should exist for a dev/NFS to be mounted.
parent 7542e18b
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,16 @@
- group
- netgroup
- automount
- name: Create base directories
ansible.builtin.file:
path: "{{ item.dir }}"
state: directory
mode: "{{ item.mode }}"
loop:
- { dir: /local, mode: '0777' }
- { dir: /scratch, mode: '0755' }
- { dir: /share, mode: '0755' }
- { dir: /data/rc/apps, mode: '0755' } # this is only required for the symlink to be happy
- name: Set up NFS GPFS mount point(s)
ansible.posix.mount:
path: "{{ item.path }}"
......@@ -114,16 +124,6 @@
- munge
- slurmd
- nslcd
- name: Create base directories
ansible.builtin.file:
path: "{{ item.dir }}"
state: directory
mode: "{{ item.mode }}"
loop:
- { dir: /local, mode: '0777' }
- { dir: /scratch, mode: '0755' }
- { dir: /share, mode: '0755' }
- { dir: /data/rc/apps, mode: '0755' } # this is only required for the symlink to be happy
- name: Create symbolic links
ansible.builtin.file:
src: "{{ item.src }}"
......
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