summaryrefslogtreecommitdiffstats
path: root/roles/glusterfs/tasks/mount_domain.yml
blob: 355ed2928aa6bd2ff6db43344cee6004b263bb32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Mount volumes
  include_tasks: 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