tools/appsre-ansible: revert sub removal on rpmbuild machines

The rhel-9 templates used in mock don't work with RHUI, they require the
CDN. This reintroduces the RHUI-CDN repo sync issue again.

This reverts commit d9f2ac14bc.
This commit is contained in:
Sanne Raymaekers 2023-03-02 11:56:35 +01:00 committed by Tomáš Hozza
parent 266cfdcc44
commit 41d98c85a7

View file

@ -20,6 +20,19 @@
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
disable_gpg_check: yes
- name: Disable RHUI repos
become: yes
shell: >-
dnf config-manager \
--set-disabled rhel-9-baseos-rhui-rpms \
--set-disabled rhel-9-appstream-rhui-rpms
# RHEL mock templates don't work on RHUI, they use the CDN repos
- name: Subscribe
community.general.redhat_subscription:
activationkey: "{{ RH_ACTIVATION_KEY }}"
org_id: "{{ RH_ORG_ID }}"
- name: Upgrade all packages
package:
name: "*"