2025-02-04 15:48:36 -08:00

17 lines
412 B
YAML

---
- name: Verify Gluster mount path
become: true
file:
path: "{{gluster_mount_path}}"
state: directory
- name: Mount Gluster volume
become: true
# TODO: Make this scalable in case different # of replicas
mount:
path: "{{gluster_mount_path}}"
src: "localhost:/{{gluster_volume_name}}"
fstype: glusterfs
opts: defaults,_netdev,backupvolfile-server=localhost
state: mounted