Merge "Enable overriding the service setup host python interpreter"

This commit is contained in:
Zuul 2019-02-27 10:41:20 +00:00 committed by Gerrit Code Review
commit 833690fef8
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,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.
zun_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}" zun_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
zun_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((zun_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'

View File

@ -21,8 +21,7 @@
- name: Setup the service - name: Setup the service
delegate_to: "{{ zun_service_setup_host }}" delegate_to: "{{ zun_service_setup_host }}"
vars: vars:
ansible_python_interpreter: >- ansible_python_interpreter: "{{ zun_service_setup_host_python_interpreter }}"
{{ (zun_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
block: block:
- name: Add service to the keystone service catalog - name: Add service to the keystone service catalog
os_keystone_service: os_keystone_service: