diff --git a/tasks/octavia_amp_image.yml b/tasks/octavia_amp_image.yml index 8ac6bc8b..5fe617ef 100644 --- a/tasks/octavia_amp_image.yml +++ b/tasks/octavia_amp_image.yml @@ -21,8 +21,7 @@ - name: Setup the amphora image delegate_to: "{{ octavia_service_setup_host }}" vars: - ansible_python_interpreter: >- - {{ (octavia_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }} + ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}" block: - name: Create image download directory file: diff --git a/tasks/octavia_flavor_create.yml b/tasks/octavia_flavor_create.yml index 11b6c6f8..6f8c6fae 100644 --- a/tasks/octavia_flavor_create.yml +++ b/tasks/octavia_flavor_create.yml @@ -21,8 +21,7 @@ - name: Setup the octavia flavor delegate_to: "{{ octavia_service_setup_host }}" vars: - ansible_python_interpreter: >- - {{ (octavia_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }} + ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}" block: - name: Create Octavia Flavor run_once: true diff --git a/tasks/octavia_mgmt_network.yml b/tasks/octavia_mgmt_network.yml index e8b26d1b..e3d0a130 100644 --- a/tasks/octavia_mgmt_network.yml +++ b/tasks/octavia_mgmt_network.yml @@ -21,8 +21,7 @@ - name: Setup the network delegate_to: "{{ octavia_service_setup_host }}" vars: - ansible_python_interpreter: >- - {{ (octavia_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }} + ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}" block: - name: Create mgmt network run_once: true diff --git a/tasks/octavia_security_group.yml b/tasks/octavia_security_group.yml index 832ec710..64e16cfa 100644 --- a/tasks/octavia_security_group.yml +++ b/tasks/octavia_security_group.yml @@ -21,8 +21,7 @@ - name: Setup the security groups delegate_to: "{{ octavia_service_setup_host }}" vars: - ansible_python_interpreter: >- - {{ (octavia_service_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }} + ansible_python_interpreter: "{{ octavia_service_setup_host_python_interpreter }}" block: - name: Setup the service project quota os_quota: