--- - 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