Skip to content

Commit

Permalink
Tests: Use EPEL-7 from archive
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Haruda <[email protected]>
  • Loading branch information
jharuda committed Aug 16, 2024
1 parent 89d7148 commit 8c22594
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tests/tasks/enable_epel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
- ansible_distribution_major_version in ['7', '8']
block:
- name: Create EPEL {{ ansible_distribution_major_version }}
vars:
__epel_7:
"https://dl.fedoraproject.org/pub/archive/epel/7/x86_64/\
Packages/e/epel-release-7-14.noarch.rpm"
__epel: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{
ansible_distribution_major_version }}.noarch.rpm
__epel_url: "{{
__epel_7 if ansible_distribution_major_version == '7'
else __epel }}"
command:
cmd: >-
rpm -iv https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{
ansible_distribution_major_version }}.noarch.rpm
cmd: rpm -iv {{ __epel_url }}
# noqa command-instead-of-module
creates: /etc/yum.repos.d/epel.repo
register: __epel_status
Expand Down

0 comments on commit 8c22594

Please sign in to comment.