Skip to content

Instantly share code, notes, and snippets.

@ragingprodigy
Created December 18, 2017 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragingprodigy/aadac02640cefbb5871fd3bc71bc1ec6 to your computer and use it in GitHub Desktop.
Save ragingprodigy/aadac02640cefbb5871fd3bc71bc1ec6 to your computer and use it in GitHub Desktop.
Ansible Playbook to enable EPEL Repo on Centos/RHEL 7
---
- hosts: all
sudo: yes
tasks:
- name: Install EPEL repo.
yum:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm
state: present
- name: Import EPEL GPG key.
rpm_key:
key: /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-{{ ansible_distribution_major_version }}
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment