From 5d76d689f474d6aba8c9d01946cceb4d7121c06e Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 5 Sep 2019 17:41:00 +0100 Subject: [PATCH] Allow venv python interpreter to be overridden Change-Id: I7fd1510469359d78fa7e37e5d1c0b150c1696ebe --- defaults/main.yml | 1 + tasks/neutron_install.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index bdeb97f3..e01b9517 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -40,6 +40,7 @@ neutron_package_state: "latest" # Set installation method. neutron_install_method: "source" +neutron_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}" ### ### Python code details diff --git a/tasks/neutron_install.yml b/tasks/neutron_install.yml index df8edf0c..a15a38d2 100644 --- a/tasks/neutron_install.yml +++ b/tasks/neutron_install.yml @@ -50,6 +50,7 @@ import_role: name: "python_venv_build" vars: + venv_python_executable: "{{ neutron_venv_python_executable }}" venv_build_constraints: "{{ neutron_git_constraints }}" venv_build_distro_package_list: "{{ neutron_devel_distro_packages }}" venv_install_destination_path: "{{ neutron_bin | dirname }}"