install pip matching the python version

This commit is contained in:
Andreas Zweili 2021-11-11 21:37:56 +01:00
parent 2f7cbf2eba
commit af59d64abd
1 changed files with 8 additions and 0 deletions

View File

@ -59,6 +59,14 @@
url: "https://bootstrap.pypa.io/get-pip.py"
dest: "/tmp/get-pip.py"
mode: "0644"
when: ansible_python_version > 3.5
- name: "Download Pip"
get_url:
url: "https://bootstrap.pypa.io/pip/3.5/get-pip.py"
dest: "/tmp/get-pip.py"
mode: "0644"
when: ansible_python_version == 3.5
- name: "Install pip"
command: