d2cc39e10d
Since OSP14 has containerized UC, the current way of checking for config file in /etc will fail and ths even though config-parser is configured to look at /var/lib/config-data the task would be skipped. Using ansible_env.HOME to source stackrc. Change-Id: I72d7d8572cdbac9b5fb3e8c8b5366b9f77dc03ec
19 lines
466 B
YAML
19 lines
466 B
YAML
---
|
|
#
|
|
# Tasks to get neutron facts
|
|
#
|
|
|
|
- name: Parse Neutron config
|
|
become: true
|
|
command: python /tmp/openstack-config-parser.py neutron /tmp/out.yml
|
|
register: neutron_parsed
|
|
ignore_errors: true
|
|
|
|
- name: Fetch output
|
|
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
|
|
when: neutron_parsed is succeeded
|
|
|
|
- name: Load configuration variables
|
|
include_vars: /tmp/out-{{ inventory_hostname }}.yml
|
|
when: neutron_parsed is succeeded
|