Browse Source

Use openstack service setup host for net bootstrap

Bootstrap the network configuration using the openstack API setup
host.

Change-Id: Ia8fb5c1fd7cf56cf4746ceaf24e142360b1bf126
changes/43/643843/1
Logan V 3 months ago
parent
commit
ba1b0c15c7
1 changed files with 9 additions and 2 deletions
  1. 9
    2
      network_bootstrap/bootstrap-neutron.yml

+ 9
- 2
network_bootstrap/bootstrap-neutron.yml View File

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

Loading…
Cancel
Save