Add EPEL repos for debug-tools role

This commit is contained in:
ykisialiou 2018-06-19 15:41:53 +03:00
parent a175315532
commit 2da4f400c2
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,17 @@
---
- name: Add EPEL repository
yum_repository:
name: epel
description: EPEL YUM repo
baseurl: "{{ epel_repo_url }}"
when: ansible_os_family == "RedHat"
- name: Import EPEL GPG key
rpm_key:
key: "{{ epel_repo_gpg_key_url }}"
state: present
when: ansible_os_family == "RedHat"
- name: Install packages
yum: name={{ item }} state=present update_cache=yes
with_items:

View File

@ -0,0 +1,2 @@
epel_repo_url: "https://download.fedoraproject.org/pub/epel/$releasever/$basearch/"
epel_repo_gpg_key_url: "https://getfedora.org/static/352C64E5.txt"