From 5edb07299d820548517253dc894ca740b545c4d8 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 13 Mar 2020 18:40:54 -0400 Subject: [PATCH] common: Don't use baseurl for epel at all Despite having a mirrorlist present in the repo file, if contacting the baseurl fails, the yum transaction fails which causes our jobs to fail. Let's try *just* using a mirrorlist. See https://github.com/ceph/ceph-cm-ansible/pull/542#issuecomment-598924481 Signed-off-by: David Galloway --- roles/common/defaults/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml index 6d1b9df7..5c922010 100644 --- a/roles/common/defaults/main.yml +++ b/roles/common/defaults/main.yml @@ -17,7 +17,6 @@ epel_mirror_baseurl: "http://dl.fedoraproject.org/pub/epel" epel_repos: epel: name: "Extra Packages for Enterprise Linux" - baseurl: "{{ epel_mirror_baseurl }}/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch" mirrorlist: file:///etc/yum.repos.d/epel-mirrorlist failovermethod: priority # ternary requires ansible >= 1.9 @@ -25,7 +24,6 @@ epel_repos: gpgcheck: 0 epel-testing: name: "Extra Packages for Enterprise Linux - Testing" - baseurl: "{{ epel_mirror_baseurl }}/testing/{{ ansible_distribution_major_version }}/{% if ansible_distribution_major_version == '8' %}Everything/{% endif %}$basearch" mirrorlist: file:///etc/yum.repos.d/epel-testing-mirrorlist failovermethod: priority enabled: 0