Skip to content

Commit

Permalink
Ensure EPEL is reinstalled
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pablintino authored and openshift-merge-bot[bot] committed Jan 14, 2025
1 parent 16394c4 commit 61287d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions roles/ci_setup/tasks/epel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
name: ci_setup
tasks_from: repos.yml

# Some roles like repo_setup may have altered the RPM installed files
# without removing the RPM itself. Ensuring it's not installed before
# enforcing its installation will make the EPEL rpm install consistent
# with the actul state of the repository files.
- name: Ensure EPEL is not already installed
become: true
ansible.builtin.dnf:
name: epel-release
state: absent

- name: Install EPEL
become: true
ansible.builtin.dnf:
Expand Down

0 comments on commit 61287d8

Please sign in to comment.