Autodetect python used by ansible as default

This commit is contained in:
Radosław 2020-02-21 07:47:19 +01:00
parent cee6952975
commit aa4908ee1e
1 changed files with 1 additions and 1 deletions

View File

@ -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: []