mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Since 2026-10-21 18:45Z part of the metalinks mirrors.centos.org hands
to CI runners still expects the previous BaseOS repomd.xml (sha512
bed4f4…) while every mirror and the master already serve the current one
(2f4550…). dnf then rejects every mirror ("checksum doesn't match",
"All mirrors were tried", Nextcloud#2, Nextcloud#10, Mattermost#1 in run
39684179395) or resolves BaseOS from a mirror still on the previous push
while AppStream is current ("nothing provides rpm = 4.19.1.1-27.el10
needed by rpm-build-4.19.1.1-27.el10", Baserow#0, Akaunting#0).
roles/update/files/centos_mirror.sh replaces every metalink of the
CentOS Stream repo files with the matching baseurl on
mirror.stream.centos.org and prints what it pinned. The Dockerfile runs
it before its first dnf call, so the dev and swarm-node images never
consult a metalink; roles/update reaches fedora.yml through a new
centos.yml that runs it first, so production hosts resolve against the
same source. The script is idempotent and prints nothing once every
section is pinned.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
19 lines
569 B
YAML
19 lines
569 B
YAML
---
|
|
- name: "🔄 update | dispatch to per-package-family task file"
|
|
block:
|
|
- include_tasks: "{{ _update_distro_file }}"
|
|
vars:
|
|
_update_distro_file: >-
|
|
{{
|
|
{
|
|
'Archlinux': 'arch.yml',
|
|
'Debian': 'debian.yml',
|
|
'Ubuntu': 'debian.yml',
|
|
'Fedora': 'fedora.yml',
|
|
'CentOS': 'centos.yml',
|
|
}[ansible_facts['distribution']] | default('unsupported.yml')
|
|
}}
|
|
|
|
- include_tasks: utils/once/flag.yml
|
|
when: run_once_update is not defined
|