]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Only put epel repos in place on EL7 or lower 461/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 3 Jun 2019 15:57:25 +0000 (11:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 3 Jun 2019 15:57:25 +0000 (11:57 -0400)
This should be reversed when EPEL8 is released (http://tracker.ceph.com/issues/40113)

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/yum_systems.yml

index fd58864176651ea303bafd76eb8542a65c52b791..91bbf070ec32560ca69aad3149a3a99bd18fc051 100644 (file)
@@ -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