Ian Wienand 88124dffb9 Update Fedora to 31
Update the Fedora test platform to 31.  Since we have dropped the
pip-and-virtualenv element with this image, we do not need the
work-around for excluded packages any more.

Story: #2007386
Task: #39310

Change-Id: I713a3cc790039dee3d28d83198f5afff5bebc491
2020-04-17 14:50:51 +10:00

21 lines
428 B
YAML

- name: Install Python 3 pip
package:
name:
- python3-pip
- python3-setuptools
state: present
when:
- ansible_python.version.major == 3
become: yes
- name: Install Python 2 pip
package:
name:
- python-pip
- python-setuptools
- python-virtualenv
state: present
become: yes
when: (ensure_pip_from_packages_with_python2) or
(ansible_python.version.major == 2)