Use openstack service setup host for net bootstrap

Bootstrap the network configuration using the openstack API setup
host.

Change-Id: Ia8fb5c1fd7cf56cf4746ceaf24e142360b1bf126
This commit is contained in:
Logan V 2019-03-17 22:20:45 -05:00
parent 4ecb46edcf
commit ba1b0c15c7
1 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,13 @@
- name: Bootstrap neutron networks
hosts: utility_all[0]
gather_facts: no
hosts: "{{ openstack_service_setup_host | default('localhost') }}"
pre_tasks:
- name: Set ansible_python_interpreter
set_fact:
ansible_python_interpreter: >-
{{ openstack_service_setup_host_python_interpreter |
default((inventory_hostname == 'localhost') |
ternary(ansible_playbook_python,
ansible_python['executable'])) }}
tasks:
- name: Install openstacksdk
pip: