summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/volumes.yml
blob: 96363b83e46048b7c3a0e1b9c82db47bafda4612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- name: Configure volume domains
  include_tasks: create_domain.yml
  args:
    apply:
      run_once: true
      delegate_to: "{{ groups[domain.servers][0] }}"
  with_items: "{{ glusterfs_domains }}"
  loop_control:
    loop_var: domain  

- name: Mount volume domains
  include_tasks: mount_domain.yml
  when: domain.clients | default([]) | intersect(group_names) | length > 0
  with_items: "{{ glusterfs_domains }}"
  loop_control:
    loop_var: domain