Skip to content

Commit

Permalink
only use epel url for RHEL systems
Browse files Browse the repository at this point in the history
all others (CentOS, Alma, Rocky) ship it in their repos already

this fixes the ussue where the URL sometimes returns 403 in our CI
  • Loading branch information
evgeni committed Mar 23, 2022
1 parent 7c5dd6d commit a60cd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/epel_repositories/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
epel_repositories_state: present
epel_repositories_url: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
epel_repositories_name: "{{ epel_repositories_url if epel_repositories_state == 'present' else 'epel-release' }}"
epel_repositories_name: "{{ epel_repositories_url if (epel_repositories_state == 'present' and ansible_distribution == 'RedHat') else 'epel-release' }}"

0 comments on commit a60cd03

Please sign in to comment.