Exclude libvirt/qemu from AppStream: container

libvirt/qemu are rebased to newer version in
AppStream repo than advanced-virtualization, and
likely due to that jobs started failing. Somehow
jobs are passing in releases before wallaby even
with newver version.

This patch is a temporary fix to
exclude libvirt/qemu from AppStream repo.

Change-Id: Iac4425d655df2f519f5b467e3754dad08ac9b1f5
Related-Bug: #1950916
This commit is contained in:
Ronelle Landy 2021-11-16 15:47:28 -05:00
parent 72d7519942
commit dd077fbaaf
1 changed files with 15 additions and 0 deletions

View File

@ -38,6 +38,21 @@
{{ ansible_pkg_mgr }} clean metadata
when: ansible_distribution_major_version is version(8, '==')
# workaround for LP #1950916
- name: Check if /etc/yum.repos.d/CentOS-Stream-AppStream.repo exists
stat:
path: /etc/yum.repos.d/CentOS-Stream-AppStream.repo
register: stat_appstream
- name: Exclude libvirt/qemu from AppStream repo
become: true
lineinfile:
dest: /etc/yum.repos.d/CentOS-Stream-AppStream.repo
line: "exclude=libvirt*,python*libvirt*,qemu*"
when:
- stat_appstream.stat.exists
- release is defined and release in ['master', 'wallaby']
- name: Include bindep role
include_role:
name: bindep