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: I50af72d6dd9561793d1d57af493c8885b5e1cd0d
This commit is contained in:
parent
a8bbde4226
commit
0323916985
@ -28,6 +28,7 @@ debug: False
|
||||
# for the service setup. The host must already have
|
||||
# clouds.yaml properly configured.
|
||||
neutron_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
|
||||
neutron_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((neutron_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
|
||||
|
||||
###
|
||||
### Packages Options
|
||||
|
@ -21,8 +21,7 @@
|
||||
- name: Setup the service
|
||||
delegate_to: "{{ neutron_service_setup_host }}"
|
||||
vars:
|
||||
ansible_python_interpreter: >-
|
||||
{{ (neutron_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
|
||||
ansible_python_interpreter: "{{ neutron_service_setup_host_python_interpreter }}"
|
||||
block:
|
||||
- name: Add service to the keystone service catalog
|
||||
os_keystone_service:
|
||||
|
Loading…
Reference in New Issue
Block a user