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: Idb3cab8a225419cf801b1ee74188dee40dff0e09
This commit is contained in:
Jesse Pretorius 2018-11-30 16:10:56 +00:00
parent 09b8a7d9e1
commit 480e210d1d
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.
horizon_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
horizon_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((horizon_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

@ -21,8 +21,7 @@
- name: Setup the default member role
delegate_to: "{{ horizon_service_setup_host }}"
vars:
ansible_python_interpreter: >-
{{ (horizon_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
ansible_python_interpreter: "{{ horizon_service_setup_host_python_interpreter }}"
block:
- name: Add default member role
os_keystone_role: