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:
parent
4ecb46edcf
commit
ba1b0c15c7
@ -1,6 +1,13 @@
|
|||||||
- name: Bootstrap neutron networks
|
- name: Bootstrap neutron networks
|
||||||
hosts: utility_all[0]
|
hosts: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||||
gather_facts: no
|
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:
|
tasks:
|
||||||
- name: Install openstacksdk
|
- name: Install openstacksdk
|
||||||
pip:
|
pip:
|
||||||
|
Loading…
Reference in New Issue
Block a user