browbeat/ansible/gather/roles/neutron/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

25 lines
610 B
YAML

---
#
# Tasks to get neutron facts
#
- name: Parse Neutron config
become: true
shell: python /tmp/openstack-config-parser.py neutron /etc/neutron/neutron.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
- name: Parse Neutron plugin.ini
become: true
shell: python /tmp/openstack-config-parser.py neutron-plugin /etc/neutron/plugin.ini /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