From e8b992fc1d770c8f27c5e69dbbb58d871c7ce530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Tue, 21 Jul 2020 05:21:00 -0400 Subject: [PATCH] enable EPEL only on RHEL and CentOS (#37) Fedora has `ansible_os_family==RedHat`, but it does not use EPEL. --- tasks/RedHat.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/RedHat.yml b/tasks/RedHat.yml index b02d132..59e51b5 100644 --- a/tasks/RedHat.yml +++ b/tasks/RedHat.yml @@ -3,4 +3,5 @@ yum: pkg: epel-release state: installed - update_cache: yes \ No newline at end of file + update_cache: yes + when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'