23 lines
542 B
YAML
23 lines
542 B
YAML
---
|
|
#
|
|
# Tasks to get heat facts
|
|
#
|
|
|
|
- name: Check that Heat is installed
|
|
become: true
|
|
stat: path=/etc/heat/heat.conf
|
|
register: heat_config
|
|
|
|
- name: Parse Heat config
|
|
become: true
|
|
command: python /tmp/openstack-config-parser.py heat /tmp/out.yml
|
|
when: heat_config.stat.exists
|
|
|
|
- name: Fetch output
|
|
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
|
|
when: heat_config.stat.exists
|
|
|
|
- name: Load configuration variables
|
|
include_vars: /tmp/out-{{ inventory_hostname }}.yml
|
|
when: heat_config.stat.exists
|