Install get-pip.py for python3.5/xenial with specific url
The get-pip script does not work well with python3.5/xenial It raises error during installation [1]. Use python3.5 specific url to install working version. [1] https://github.com/pypa/get-pip/issues/83 Change-Id: Iea35d9df1ea5f2b8ea5e5d29b4c79e97c99848a1
This commit is contained in:
parent
326e0dc4d7
commit
0867988745
|
@ -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
|
|
@ -16,11 +16,15 @@
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution_release != 'xenial'
|
when: ansible_distribution_release != 'xenial'
|
||||||
|
|
||||||
- name: Download get-pip.py
|
- name: Download OS/Python specific get-pip.py
|
||||||
command: wget https://bootstrap.pypa.io/get-pip.py
|
include_tasks: "{{ get_pip_os }}"
|
||||||
args:
|
with_first_found:
|
||||||
chdir: /var/lib
|
- "{{ ansible_distribution_release }}.yaml"
|
||||||
creates: /var/lib/get-pip.py
|
- "{{ ansible_distribution }}.yaml"
|
||||||
|
- "{{ ansible_os_family }}.yaml"
|
||||||
|
- "default.yaml"
|
||||||
|
loop_control:
|
||||||
|
loop_var: get_pip_os
|
||||||
|
|
||||||
- name: Install pip
|
- name: Install pip
|
||||||
command: python3 /var/lib/get-pip.py
|
command: python3 /var/lib/get-pip.py
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue