tenks/roles/tenks-ci-prep/tasks/main.yml
Mark Goddard d2cb3e2e93 Install python setuptools & virtualenv
These are no longer installed in the nodepool image provided by infra.

Change-Id: I52350a54e58042f390eb2ad84b220194ca2ef4b9
2020-06-18 10:01:47 +00:00

24 lines
722 B
YAML

---
- block:
# NOTE(mgoddard): The CentOS image used in CI has epel-release installed,
# but the configure-mirrors role used by Zuul disables epel. Since we
# install epel-release and expect epel to be enabled, enable it here.
- name: Ensure yum-utils is installed
yum:
name: yum-utils
state: installed
- name: Enable the EPEL yum repository
command: yum-config-manager --enable epel
when: ansible_os_family == 'RedHat'
become: true
- name: Install Python3 modules
become: true
package:
name:
- python3-pip
- python3-setuptools
- python3-wheel
- "{% if ansible_os_family == 'Debian' %}virtualenv{% else %}python3-virtualenv{% endif %}"