Table of Contents

About

EPEL 1) is open source and free community based package repository project from Fedora team for Linux distribution including:

  • RHEL (Red Hat Enterprise Linux),
  • CentOS,
  • and Scientific Linux.

Installation

With the rpm

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
rpm -ivh epel-release-latest-7.noarch.rpm
# the epel repo must be now available
yum repolist

With ansible

- name: Add the EPEL repository
    become: yes
    yum_repository:
      name: epel
      description: EPEL YUM repo
      baseurl: https://dl.fedoraproject.org/pub/epel/$releasever/$basearch/
      gpgcheck: yes
  • Add the Key
  - name: "Adds the gpg key from the EPEL repo"
    become: yes
    rpm_key:
      state: present
      key: https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7
  - name: "Install Jq"
    become: yes
    yum:
      name: jq
      enablerepo: epel
      state: present

Documentation / Reference