
The 'package' module doesn't update any package lists before installing packages which can cause problems if the package lists haven't been updated in a while. So run 'apt-get update' before installing pip. Change-Id: I836f7faa25dd8c06d0158828e21226fbe93fbb40
23 lines
405 B
YAML
23 lines
405 B
YAML
- name: Update package lists
|
|
apt:
|
|
update_cache: true
|
|
become: yes
|
|
|
|
- name: Install Python 3 pip
|
|
package:
|
|
name:
|
|
- python3-pip
|
|
- python3-setuptools
|
|
- python3-venv
|
|
- python3-wheel
|
|
become: yes
|
|
|
|
- name: Install Python 2 pip
|
|
package:
|
|
name:
|
|
- python-setuptools
|
|
- python-pip
|
|
- python-wheel
|
|
become: yes
|
|
when: ensure_pip_from_packages_with_python2
|