From cf239cfebfe69d74a8e8a392ca14a2e383d02e45 Mon Sep 17 00:00:00 2001 From: "don.sizemore" Date: Tue, 23 Jun 2020 09:51:30 -0400 Subject: [PATCH] use fastest mirror on RH/Cent8 --- tasks/dataverse-prereqs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/dataverse-prereqs.yml b/tasks/dataverse-prereqs.yml index 211f1b6..fb68516 100644 --- a/tasks/dataverse-prereqs.yml +++ b/tasks/dataverse-prereqs.yml @@ -16,6 +16,14 @@ when: ansible_os_family == "RedHat" and ansible_distribution_major_version == "7" +- name: let's use the fastest mirror + lineinfile: + path: /etc/dnf/dnf.conf + line: 'fastestmirror=1' + insertafter: '^gpgcheck' + when: ansible_os_family == "RedHat" and + ansible_distribution_major_version == "8" + - name: makecache on RedHat yum: update_cache: yes