From 8c73b2d60d9507f93f813756c0f4f18a4b74a661 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Fri, 10 Apr 2026 10:10:15 +0100 Subject: [PATCH] CI: Use main Rocky mirror We are frequently hitting issues downloading the mirrorlist in CI. This copies the change from kolla-ansible[1] with the hope that it will improve reliability. [1] https://review.opendev.org/c/openstack/kolla-ansible/+/983965 Change-Id: Ic107bc1e21806cc6549ac86d8ccc83377fe2cfba Signed-off-by: Will Szumski (cherry picked from commit 71dee319de0cc99e7657a7c56684d541bc779ee3) --- roles/kayobe-ci-prep/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/kayobe-ci-prep/tasks/main.yml b/roles/kayobe-ci-prep/tasks/main.yml index 1fe4da1d3..c44508217 100644 --- a/roles/kayobe-ci-prep/tasks/main.yml +++ b/roles/kayobe-ci-prep/tasks/main.yml @@ -1,4 +1,10 @@ --- +- name: Set Rocky Linux mirror to download.rockylinux.org + become: true + ansible.builtin.shell: + cmd: sed -i 's/mirrorlist/#mirrorlist/g; s/#baseurl/baseurl/g' /etc/yum.repos.d/rocky.repo + when: ansible_facts.distribution == "Rocky" + - block: - name: Install dbus for debian system apt: @@ -25,7 +31,7 @@ name: dnf-plugins-core state: present - - name: Enable the EPEL repository + - name: Disable the EPEL repository command: dnf config-manager --disable epel - name: Install packages needed for unprivileged mode