Merge "Install get-pip.py for python3.5/xenial with specific url"

This commit is contained in:
Zuul 2021-01-26 19:51:56 +00:00 committed by Gerrit Code Review
commit bde4db4e42
3 changed files with 20 additions and 5 deletions

View File

@ -0,0 +1,5 @@
- name: Download get-pip.py
command: wget https://bootstrap.pypa.io/get-pip.py
args:
chdir: /var/lib
creates: /var/lib/get-pip.py

View File

@ -16,11 +16,15 @@
state: present
when: ansible_distribution_release != 'xenial'
- name: Download get-pip.py
command: wget https://bootstrap.pypa.io/get-pip.py
args:
chdir: /var/lib
creates: /var/lib/get-pip.py
- name: Download OS/Python specific get-pip.py
include_tasks: "{{ get_pip_os }}"
with_first_found:
- "{{ ansible_distribution_release }}.yaml"
- "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml"
- "default.yaml"
loop_control:
loop_var: get_pip_os
- name: Install pip
command: python3 /var/lib/get-pip.py

View File

@ -0,0 +1,6 @@
# https://github.com/pypa/get-pip/issues/83
- name: Download get-pip.py
command: wget https://bootstrap.pypa.io/3.5/get-pip.py
args:
chdir: /var/lib
creates: /var/lib/get-pip.py