Autodetect python used by ansible as default
This commit is contained in:
parent
cee6952975
commit
aa4908ee1e
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
# For Python 3, use python3-pip.
|
||||
pip_package: python-pip
|
||||
pip_package: "{{ 'python-pip' if ansible_python_interpreter.endswith('python2') else 'python3-pip' }}"
|
||||
pip_executable: "{{ 'pip3' if pip_package.startswith('python3') else 'pip' }}"
|
||||
|
||||
pip_install_packages: []
|
||||
|
|
Loading…
Reference in New Issue