Skip to content

Commit

Permalink
fix(rh): add EPEL archive links for EL 6 and 7 (#37)
Browse files Browse the repository at this point in the history
* fix(rh): add EPEL archive links for EL 6 and 7

* chore: lint
  • Loading branch information
gianklug authored Nov 14, 2024
1 parent c630f91 commit fbb8915
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tasks/installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,27 @@

- name: Install fedora epel repository
ansible.builtin.dnf:
name: https://pkg.adfinis-sygroup.ch/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
name: https://download.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
state: present
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version | int > 7

- name: Install fedora epel repository for CentOS < 8 # noqa fqcn[action-core]
- name: Install fedora epel repository for CentOS 7 # noqa fqcn[action-core]
ansible.builtin.yum:
name: https://pkg.adfinis-sygroup.ch/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
name: https://archives.fedoraproject.org/pub/archive/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
state: present
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version | int < 8
- ansible_distribution_major_version | int == 7

- name: Install fedora epel repository for CentOS 6 # noqa fqcn[action-core]
ansible.builtin.yum:
name: https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm
state: present
when:
- ansible_os_family == 'RedHat'
- ansible_distribution_major_version | int == 6

- name: Deactivate the epel repository
ansible.builtin.yum_repository:
Expand Down

0 comments on commit fbb8915

Please sign in to comment.