Browse Source

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: Id70abddc0ba2a4086406d35162d9aca0b526f196
Jesse Pretorius 4 months ago
parent
commit
273d4fd2d5
2 changed files with 2 additions and 2 deletions
  1. 1
    0
      defaults/main.yml
  2. 1
    2
      tasks/designate_service_setup.yml

+ 1
- 0
defaults/main.yml View File

@@ -20,6 +20,7 @@ debug: False
20 20
 # for the service setup. The host must already have
21 21
 # clouds.yaml properly configured.
22 22
 designate_service_setup_host: "{{ openstack_service_setup_host | default('localhost') }}"
23
+designate_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((designate_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}"
23 24
 
24 25
 # Set the package install state for distribution packages
25 26
 # Options are 'present' and 'latest'

+ 1
- 2
tasks/designate_service_setup.yml View File

@@ -21,8 +21,7 @@
21 21
 - name: Setup the service
22 22
   delegate_to: "{{ designate_service_setup_host }}"
23 23
   vars:
24
-    ansible_python_interpreter: >-
25
-      {{ (designate_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }}
24
+    ansible_python_interpreter: "{{ designate_service_setup_host_python_interpreter }}"
26 25
   block:
27 26
     - name: Add service to the keystone service catalog
28 27
       os_keystone_service:

Loading…
Cancel
Save