From 14b6ad4620a6f410ce445ebccca5fac087821564 Mon Sep 17 00:00:00 2001 From: Jakub Haruda Date: Wed, 14 Aug 2024 21:46:13 +0200 Subject: [PATCH] Tests: Use EPEL-7 from archive --- tests/tasks/enable_epel.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/tasks/enable_epel.yml b/tests/tasks/enable_epel.yml index 16ac5e2a4..6c4df00bc 100644 --- a/tests/tasks/enable_epel.yml +++ b/tests/tasks/enable_epel.yml @@ -20,6 +20,17 @@ until: __epel_status is success retries: 6 delay: 10 + when: ansible_distribution_major_version != '7' + + - name: Create EPEL 7 + cmd: >- + rpm -iv https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm + creates: /etc/yum.repos.d/epel.repo + register: __epel_status + until: __epel_status is success + retries: 6 + delay: 10 + when: ansible_distribution_major_version == '7' - name: Install yum-utils package package: