Enable overriding the service setup host python interpreter
In order to enable the service setup host python interpreter to be changed easily, we make it a variable. This will be useful when someone sets the service setup host to be the utility container, because we'll be able to set this var by default. Change-Id: If33382404565dcb288e2b6794512f09c85e751d5
This commit is contained in:
parent
7b56f1d9b7
commit
9573f2e714
|
@ -20,6 +20,7 @@ debug: False
|
||||||
# for the service setup. The host must already have
|
# for the service setup. The host must already have
|
||||||
# clouds.yaml properly configured.
|
# clouds.yaml properly configured.
|
||||||
keystone_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
keystone_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||||
|
keystone_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((keystone_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
|
||||||
|
|
||||||
# Set the package install state for distribution and pip packages
|
# Set the package install state for distribution and pip packages
|
||||||
# Options are 'present' and 'latest'
|
# Options are 'present' and 'latest'
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
- name: Update the service
|
- name: Update the service
|
||||||
delegate_to: "{{ keystone_service_setup_host }}"
|
delegate_to: "{{ keystone_service_setup_host }}"
|
||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: >-
|
ansible_python_interpreter: "{{ keystone_service_setup_host_python_interpreter }}"
|
||||||
{{ (keystone_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
|
|
||||||
block:
|
block:
|
||||||
- name: Wait for services to be up
|
- name: Wait for services to be up
|
||||||
uri:
|
uri:
|
||||||
|
|
Loading…
Reference in New Issue