Merge "Enable overriding the service setup host python interpreter"

This commit is contained in:
Zuul 2018-11-30 15:38:06 +00:00 committed by Gerrit Code Review
commit ed0f0fa38f
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,7 @@ debug: False
# for the service setup. The host must already have
# clouds.yaml properly configured.
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
# Options are 'present' and 'latest'

View File

@ -26,8 +26,7 @@
- name: Update the service
delegate_to: "{{ keystone_service_setup_host }}"
vars:
ansible_python_interpreter: >-
{{ (keystone_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
ansible_python_interpreter: "{{ keystone_service_setup_host_python_interpreter }}"
block:
- name: Wait for services to be up
uri: