Files
browbeat/ansible/gather/roles/mistral/tasks/main.yml
agopi 4d8b78f9e2 Adding mistral collection
Collecting mistral config data

Change-Id: Ieb9d04c36ac4b5ad788288ff47970f807593981d
2018-08-22 11:42:24 -04:00

23 lines
572 B
YAML

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