summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/mount_volume.yml
blob: 2aea7f6704a815c895a7b85a2eecfa044562c886 (plain)
1
2
3
4
5
6
7
8
---
- name: Mount {{ name }} volume
  mount: name="{{ path }}"  src="localhost:{{ name }}" fstype="glusterfs" opts="defaults,_netdev" state="mounted"
  when: server_group in group_names
  
- name: Mount {{ name }} volume
  mount: name="{{ path }}"  src="{{ domain_servers | join(",") }}:{{ name }}" fstype="glusterfs" opts="defaults,_netdev" state="mounted"
  when: not server_group in group_names