diff --git a/defaults/main.yml b/defaults/main.yml index ef8c6108..0b975511 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,6 +26,7 @@ cinder_service_setup_host_python_interpreter: "{{ openstack_service_setup_host_p # Set installation method. cinder_install_method: "source" +cinder_venv_python_executable: "{{ openstack_venv_python_executable | default('python2') }}" cinder_git_repo: https://git.openstack.org/openstack/cinder cinder_git_install_branch: master diff --git a/tasks/cinder_install_source.yml b/tasks/cinder_install_source.yml index af8bf82a..1dc89af4 100644 --- a/tasks/cinder_install_source.yml +++ b/tasks/cinder_install_source.yml @@ -17,6 +17,7 @@ import_role: name: "python_venv_build" vars: + venv_python_executable: "{{ cinder_venv_python_executable }}" venv_build_constraints: "{{ cinder_git_constraints }}" venv_build_distro_package_list: "{{ cinder_devel_distro_packages }}" venv_install_destination_path: "{{ cinder_bin | dirname }}"