From 05414c3912d3c6501910c2984240ae2a46813694 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 4 Feb 2020 18:04:51 -0500 Subject: [PATCH] Revert "common: Update yum metadata from upstream epel and exclude mirrors" This reverts commit 93e0a4a8f5f34c248d3467f3d1c8300ced0f5148. --- roles/common/tasks/epel.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/roles/common/tasks/epel.yml b/roles/common/tasks/epel.yml index a75c97c..f3befb8 100644 --- a/roles/common/tasks/epel.yml +++ b/roles/common/tasks/epel.yml @@ -27,21 +27,6 @@ - epel-mirrorlist - epel-testing-mirrorlist -# A few times a year, we'd see a bunch of 404 errors during yum transactions that involved epel mirrors. -# It has to do with upstream EPEL being updated and mirrors lagging behind. -- name: Temporarily comment mirrorlist so we can update yum cache - replace: - path: "/etc/yum.repos.d/{{ item.key }}.repo" - regexp: '^(.*mirror.*)' - replace: '#\1' - with_dict: "{{ epel_repos }}" - -- name: Update yum cache - shell: yum clean all; yum makecache - -- name: Uncomment mirrorlist - replace: - path: "/etc/yum.repos.d/{{ item.key }}.repo" - regexp: '^#(.*mirror.*)' - replace: '\1' - with_dict: "{{ epel_repos }}" +- name: Clean yum cache + shell: yum clean all + when: epel_repo is defined and epel_repo is changed -- 2.39.5