Remove cisco openh264 repo on all Fedora systems

We used to do this only on builders, but right now it's causing
problems on all hosts during the infra move:

2025-06-30T23:35:32+0000 INFO Serious error - Curl code (28): Timeout was reached for https://kojipkgs.fedoraproject.org/repos-dist/f42-infra/latest/x86_64/repodata/repomd.xml [Connection timed out after 30001 milliseconds]

and we don't actually need this repo for any infra systems, I
don't think. Let's just disable it for every Fedora host.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-06-30 16:36:24 -07:00
parent b79fb4122b
commit 75298197ce
2 changed files with 6 additions and 5 deletions

View file

@ -63,11 +63,6 @@
tags:
- koji_builder
- name: Remove openh264 repo, because it's external and oz suggests it
ansible.builtin.copy:
content: '# No external data'
dest: /etc/yum.repos.d/fedora-cisco-openh264.repo
- name: Install packages needed by koji_builders
ansible.builtin.package:
state: present

View file

@ -165,6 +165,12 @@
ansible.builtin.command: "dnf -y install python3-dnf"
when: "p3dnf.rc != 0"
- name: Remove cisco repository to avoid issues with it, nothing in infra needs it
ansible.builtin.copy:
content: '# Unneeded, causes problems sometimes, and builders especially should use no external data'
dest: /etc/yum.repos.d/fedora-cisco-openh264.repo
when: "ansible_distribution == 'Fedora'
- name: Put RabbitMQ CentOS-9 SIG repos on el systems
ansible.builtin.copy: src="{{ files }}/common/centos9s-rabbitmq38.repo" dest="/etc/yum.repos.d/centos9s-rabbitmq38.repo"
when: inventory_hostname.startswith('rabbitmq') and (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and ansible_distribution_major_version|int == 9