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
|