From: David Galloway Date: Mon, 3 Jun 2019 15:57:25 +0000 (-0400) Subject: common: Only put epel repos in place on EL7 or lower X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F461%2Fhead;p=ceph-cm-ansible.git common: Only put epel repos in place on EL7 or lower This should be reversed when EPEL8 is released (http://tracker.ceph.com/issues/40113) Signed-off-by: David Galloway --- diff --git a/roles/common/tasks/yum_systems.yml b/roles/common/tasks/yum_systems.yml index fd588641..91bbf070 100644 --- a/roles/common/tasks/yum_systems.yml +++ b/roles/common/tasks/yum_systems.yml @@ -72,9 +72,7 @@ # create and manage epel.repo - import_tasks: epel.yml - when: - ansible_distribution == "CentOS" or - ansible_distribution == 'RedHat' + when: (ansible_distribution == "CentOS" or ansible_distribution == 'RedHat') and ansible_distribution_major_version|int <= 7 tags: - epel - repos