2017-11-15 20:00:51 +00:00
|
|
|
---
|
2019-11-26 14:04:28 +00:00
|
|
|
- name: "Test if EPEL ist necessary"
|
|
|
|
fail: msg="This system does not need EPEL"
|
2022-03-16 10:10:53 +00:00
|
|
|
when: ansible_os_family not in ["RedHat", "AlmaLinux", "Rocky"] or ansible_distribution == "Fedora"
|
2017-11-15 20:00:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
- name: Update CA-Certificates
|
2024-06-27 15:09:10 +00:00
|
|
|
package:
|
2017-11-15 20:00:51 +00:00
|
|
|
name: ca-certificates
|
|
|
|
state: latest
|
|
|
|
|
|
|
|
|
|
|
|
- name: Template /etc/yum.repos.d/epel.repo
|
|
|
|
template:
|
|
|
|
src: "epel.repo.j2"
|
|
|
|
dest: "/etc/yum.repos.d/epel.repo"
|
|
|
|
backup: yes
|
|
|
|
|
|
|
|
|
2022-06-03 07:15:39 +00:00
|
|
|
- name: "Copy /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-X"
|
2017-11-15 20:00:51 +00:00
|
|
|
copy:
|
|
|
|
src: "RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
|
|
|
|
dest: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"
|
|
|
|
force: no
|
|
|
|
|
|
|
|
|
2024-06-27 15:09:10 +00:00
|
|
|
- name: Update cache
|
|
|
|
package:
|
|
|
|
update_cache: true
|
|
|
|
|
|
|
|
|