Merge "Update pip3 role to install from get-pip.py"

This commit is contained in:
Zuul 2019-12-18 19:46:38 +00:00 committed by Gerrit Code Review
commit db99b5497c

@ -1,6 +1,26 @@
- name: Install pip and virtualenv
- name: Remove pip and virtualenv packages
package:
name:
- python3-pip
- python3-virtualenv
state: present
state: absent
- 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: Install pip
command: python3 /var/lib/get-pip.py
args:
creates: /usr/local/bin/pip3
- name: Install latest pip and virtualenv
pip:
name: "{{ item }}"
state: latest
executable: pip3
loop:
- pip
- virtualenv