Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rh): add EPEL archive links for EL 6 and 7 #37

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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