diff --git a/defaults/main.yml b/defaults/main.yml index 72225f4b..4e593922 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -253,7 +253,8 @@ octavia_security_group_rule_cidr: # ssh enabled - switch to True if you need ssh access to the amphora octavia_ssh_enabled: False octavia_ssh_key_name: octavia_key -octavia_keypair_setup_host: "{{ openstack_keypair_setup_host | default('localhost') }}" +octavia_keypair_setup_host: "{{ openstack_service_setup_host | default('localhost') }}" +octavia_keypair_setup_host_python_interpreter: "{{ openstack_service_setup_host_python_interpreter | default((octavia_keypair_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable'])) }}" # port the agent listens on octavia_agent_port: "9443" octavia_health_manager_port: 5555 diff --git a/tasks/octavia_keypair.yml b/tasks/octavia_keypair.yml index 8c80d9d5..58925e42 100644 --- a/tasks/octavia_keypair.yml +++ b/tasks/octavia_keypair.yml @@ -16,8 +16,7 @@ - name: Create keypair for Octavia delegate_to: "{{ octavia_keypair_setup_host }}" vars: - ansible_python_interpreter: >- - {{ (octavia_keypair_setup_host == 'localhost') | ternary(ansible_playbook_python, ansible_python['executable']) }} + ansible_python_interpreter: "{{ octavia_keypair_setup_host_python_interpreter }}" block: - name: Create keypair register: _octavia_keypair