Created
December 18, 2017 04:43
-
-
Save ragingprodigy/aadac02640cefbb5871fd3bc71bc1ec6 to your computer and use it in GitHub Desktop.
Ansible Playbook to enable EPEL Repo on Centos/RHEL 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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