44335ab2be
This is a requirement, otherwise get-pip.py fails to install Change-Id: If8dc87d3755056af52f7f7415f6596071ac5feef
35 lines
702 B
YAML
35 lines
702 B
YAML
- name: Remove pip and virtualenv packages
|
|
package:
|
|
name:
|
|
- python3-pip
|
|
- python3-virtualenv
|
|
state: absent
|
|
|
|
# NOTE(ianw) : See https://github.com/pypa/get-pip/issues/43;
|
|
# requirement of get-pip.py
|
|
- name: Ensure distutils
|
|
package:
|
|
name:
|
|
- python3-distutils
|
|
state: present
|
|
|
|
- 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
|