diff --git a/roles/ensure-pip/defaults/main.yaml b/roles/ensure-pip/defaults/main.yaml index 103e1ff96..f55233b0d 100644 --- a/roles/ensure-pip/defaults/main.yaml +++ b/roles/ensure-pip/defaults/main.yaml @@ -3,4 +3,4 @@ ensure_pip_from_packages_with_python2: '{{ (ansible_python.version.major == 2) | ensure_pip_from_upstream_url: 'https://bootstrap.pypa.io/get-pip.py' ensure_pip_from_upstream: False ensure_pip_from_upstream_interpreters: - - '{{ ansible_python.executable }}' + - '{{ ansible_python.executable | regex_replace(".*python", "python") }}'