epel-simplified/tasks/main.yml

32 lines
703 B
YAML
Raw Normal View History

---
2019-11-26 14:04:28 +00:00
- name: "Test if EPEL ist necessary"
fail: msg="This system does not need EPEL"
when: ansible_os_family not in ["RedHat", "AlmaLinux", "Rocky"] or ansible_distribution == "Fedora"
- name: Update CA-Certificates
2024-06-27 15:09:10 +00:00
package:
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"
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