summaryrefslogtreecommitdiffstats
path: root/ansible/node/roles/storage/tasks/generic/clusterfs-gpfs.yml
blob: c4984432c1edf17878e1da333374c845e67a298c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: create cluster filesystem mountpoint
  file:
    path: "{{clusterfs.mountpoint}}"
    state: directory

- name: create cluster filesystem automount directory
  file:
    path: "{{clusterfs.mountpoint}}/automount"
    state: directory

- name: make cluster filesystem mountpoint immutable
  shell: >
    if ! findmnt "{{clusterfs.mountpoint}}"; then
      chattr +i "{{clusterfs.mountpoint}}"
    fi

- import_tasks: clusterfs-gpfs-once.yml
  run_once: true
  when: nodes[ansible_hostname].has_shared_storage