summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/mount_domain.yml
blob: 94b6677a85c1c75111785f6ccff0e213cb66f476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Mount volumes
  include: mount_volume.yml
  with_dict: "{{ domain.volumes }}"
  vars:
    name: "{{ volume.key }}"
    path: "{{ volume.value.mount }}"
    server_group: "{{ domain.servers }}"
    domain_servers: "{{ groups[domain.servers] | map('extract', hostvars, 'ands_storage_hostname') | list }}"
  when: volume.value.mount is defined
  loop_control:
    loop_var: volume