blob: 8f61116a076278bdef94e3507a8f2645f0968fdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
---
- name: Iterate volumes
include_tasks: "{{ action }}.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
|