b4c195b419
When Ansible runs under Python 2, such as on SuSE 15, we need python2-pip for pip: to work. Update the default to install Python 2 deps when Ansible is running under v2. Additionally for SuSE, as described inline we can have pip but not setuptools. Put in a work-around to always pull in the setuptools package. Pull this out into a separate file; history has shown that we may need more :/ Change-Id: I450171aad5e31d2925239ab3d0641cd23f6815a2
7 lines
315 B
YAML
7 lines
315 B
YAML
ensure_pip_from_packages: True
|
|
ensure_pip_from_packages_with_python2: '{{ (ansible_python.version.major == 2) | ternary(True, False) }}'
|
|
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 }}'
|