Skip to content

Commit 61287d8

Browse files
Ensure EPEL is reinstalled
Some roles like repo_setup may have altered the state of /etc/yum.repos.d/ without removing the EPEL rpm leading to yum/dnf to think the repos are already installed. Enforcing its deletion ensures the rpm always deploys the repository files.
1 parent 16394c4 commit 61287d8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

roles/ci_setup/tasks/epel.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
name: ci_setup
55
tasks_from: repos.yml
66

7+
# Some roles like repo_setup may have altered the RPM installed files
8+
# without removing the RPM itself. Ensuring it's not installed before
9+
# enforcing its installation will make the EPEL rpm install consistent
10+
# with the actul state of the repository files.
11+
- name: Ensure EPEL is not already installed
12+
become: true
13+
ansible.builtin.dnf:
14+
name: epel-release
15+
state: absent
16+
717
- name: Install EPEL
818
become: true
919
ansible.builtin.dnf:

0 commit comments

Comments
 (0)