2b5205f098
Gather would reuse /tmp/out.yml - we have been seeing where the MD5 differs. This seems to be due to the controllers/computes using the same /tmp/out.yml path. This patch will append the hostname, so it will be unique. Change-Id: I6e060287d02800a913e9baa269d72ea00e3f7913
24 lines
571 B
YAML
24 lines
571 B
YAML
---
|
|
#
|
|
# Tasks to get neutron facts
|
|
#
|
|
|
|
- name: Check that Neutron is installed
|
|
become: true
|
|
stat: path=/etc/neutron/neutron.conf
|
|
register: neutron_config
|
|
|
|
- name: Parse Neutron config
|
|
become: true
|
|
shell: python /tmp/openstack-config-parser.py neutron /tmp/out.yml
|
|
when: neutron_config.stat.exists
|
|
|
|
- name: Fetch output
|
|
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
|
|
when: neutron_config.stat.exists
|
|
|
|
- name: Load configuration variables
|
|
include_vars: /tmp/out-{{ inventory_hostname }}.yml
|
|
when: neutron_config.stat.exists
|
|
|