try to fix pip again

This commit is contained in:
Andreas Zweili 2021-11-11 22:11:08 +01:00
parent 30cdc5a707
commit 3066f30dba
1 changed files with 5 additions and 2 deletions

View File

@ -59,14 +59,17 @@
url: "https://bootstrap.pypa.io/get-pip.py"
dest: "/tmp/get-pip.py"
mode: "0644"
when: ansible_python_version | float > 3.5
when:
- ansible_facts['distribution_major_version'] | int >= 20
- ansible_facts['distribution'] == "Ubuntu"
- 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 | float == 3.5
when: (not ansible_facts['distribution_major_version'] | int >= 20
or not ansible_facts['distribution'] == "Ubuntu")
- name: "Install pip"
command: