Ansible-Linux_Base/roles/base/tasks/redhat_epel.yml
2023-01-17 09:52:55 -07:00

9 lines
366 B
YAML

---
# file: roles/base/tasks/redhat_epel.yml
- name: Install EPEL RPM
package:
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
state: present
disable_gpg_check: True
when: ansible_distribution == 'RedHat' or ansible_distribution == 'AlmaLinux' or ansible_distribution == 'Rocky'