ensure-pip: install from EPEL for Python 2

On CentOS 7, the python-pip package comes from EPEL.  CentOS 8 and
Fedora don't have python-pip so it's safe to switch this to "yum" and
then we can use enablerepo.

Change-Id: I267f082b2db4e501299226f0033b5d940752d931
This commit is contained in:
Ian Wienand 2020-06-17 10:48:43 +10:00
parent fe4ce563f2
commit 9926c5ac80

View File

@ -9,11 +9,12 @@
become: yes
- name: Install Python 2 pip
package:
yum:
name:
- python-pip
- python-setuptools
- python-virtualenv
state: present
enablerepo: epel
become: yes
when: ensure_pip_from_packages_with_python2