browbeat/ansible/gather/roles/cinder/tasks/main.yml
jkilpatr 522f9031e1 Openstack Metadata refactor
This moves openstack metadata collection to a much more
general format, instead of specifying exactly what to collect
a short python script has been created that grabs all key/value
pairs from the various openstack config files.

Co-Authored-By: Joe Talerico <jtaleric@redhat.com>

Change-Id: I6b653dac344c5ca27fa1010f345bc99a5591379e
2016-09-19 13:36:12 -04:00

15 lines
314 B
YAML

---
#
# Tasks to get cinder facts
#
- name: Parse Cinder config
become: true
shell: python /tmp/openstack-config-parser.py cinder /etc/cinder/cinder.conf /tmp/out.yml
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out.yml flat=yes
- name: Load configuration variables
include_vars: /tmp/out.yml