Fix EPEL setup for integration tests on RHEL 7

pull/79672/head
Matt Clay 2 years ago
parent 8e7cc371be
commit 1243d2ace0

@ -1,3 +1,8 @@
- name: Enable RHEL7 extras
# EPEL 7 depends on RHEL 7 extras, which is not enabled by default on RHEL.
# See: https://docs.fedoraproject.org/en-US/epel/epel-policy/#_policy
command: yum-config-manager --enable rhel-7-server-rhui-extras-rpms
when: ansible_facts.distribution == 'RedHat' and ansible_facts.distribution_major_version == '7'
- name: Install EPEL - name: Install EPEL
yum: yum:
name: https://ci-files.testing.ansible.com/test/integration/targets/setup_epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm name: https://ci-files.testing.ansible.com/test/integration/targets/setup_epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm

@ -76,13 +76,6 @@
- ansible_facts["distribution_major_version"] == "7" - ansible_facts["distribution_major_version"] == "7"
- ansible_facts["distribution"] == "RedHat" - ansible_facts["distribution"] == "RedHat"
block: block:
# Need to enable this RHUI repo for RHEL7 testing in AWS, CentOS has Extras
# enabled by default and this is not needed there.
- name: enable rhel-7-server-rhui-extras-rpms repo for RHEL7
command: yum-config-manager --enable rhel-7-server-rhui-extras-rpms
- name: update cache to pull repodata
yum:
update_cache: yes
- name: install required packages for buildah test - name: install required packages for buildah test
yum: yum:
state: present state: present
@ -137,5 +130,3 @@
state: absent state: absent
name: name:
- buildah - buildah
- name: disable rhel-7-server-rhui-extras-rpms repo for RHEL7
command: yum-config-manager --disable rhel-7-server-rhui-extras-rpms

Loading…
Cancel
Save