Awesome Open Source
Awesome Open Source

Ansible Role: EPEL Repository


Installs the EPEL repository (Extra Packages for Enterprise Linux) for RHEL/CentOS.


This role only is needed/runs on RHEL and its derivatives.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

epel_repo_url: "{{ ansible_distribution_major_version }}/{{ ansible_userspace_architecture }}{{ '/' if ansible_distribution_major_version < '7' else '/e/' }}epel-release-{{ ansible_distribution_major_version }}-{{ epel_release[ansible_distribution_major_version] }}.noarch.rpm"
epel_repo_gpg_key_url: "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}"

The EPEL repo URL and GPG key URL. Generally, these should not be changed, but if this role is out of date, or if you need a very specific version, these can both be overridden.

epel_repo_disable: false

Set to true to disable the EPEL repo (even if already installed).



Example Playbook

- hosts: servers
    - geerlingguy.repo-epel



Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
ansible (404
repository (94
centos (93
setup (54
role (49
redhat (30
rhel (27

Find Open Source By Browsing 7,000 Topics Across 59 Categories