blob: 44de5795e438a890efe1272c5ca581fe4bc10fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#Openstack specific configuration running on instances.
#Get volumes.
- name: "get volume info"
set_fact:
volumes: "{{ (hostvars['localhost'].heat_stack.stack.outputs | selectattr('output_key', 'equalto', 'volumes') | list).0.output_value[inventory_hostname] | default([]) }}"
- name: "Configure volumes"
include_tasks: configure/volume.yml
vars:
volume_id: "{{ item[0] }}"
mountpoint: "{{ item[1] }}"
loop: "{{ volumes }}"
|