mirror of
https://github.com/geerlingguy/ansible-role-pip.git
synced 2024-09-27 04:03:43 +02:00
Set the variable default if OS does not define the python
This commit is contained in:
parent
aa4908ee1e
commit
30757cd80f
@ -1,6 +1,6 @@
|
||||
---
|
||||
# For Python 3, use python3-pip.
|
||||
pip_package: "{{ 'python-pip' if ansible_python_interpreter.endswith('python2') else 'python3-pip' }}"
|
||||
pip_package: "{{ 'python-pip' if (ansible_python_interpreter| default('python3')).endswith('python2') else 'python3-pip' }}"
|
||||
pip_executable: "{{ 'pip3' if pip_package.startswith('python3') else 'pip' }}"
|
||||
|
||||
pip_install_packages: []
|
||||
|
Loading…
Reference in New Issue
Block a user