From 41d98c85a721c4388aef5133708f1818fdbfc382 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Thu, 2 Mar 2023 11:56:35 +0100 Subject: [PATCH] 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 d9f2ac14bcd56652665db9f54e448a27bcda2ca6. --- tools/appsre-ansible/rpmbuild.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/appsre-ansible/rpmbuild.yml b/tools/appsre-ansible/rpmbuild.yml index ce9765eab..e0a0b4ce7 100644 --- a/tools/appsre-ansible/rpmbuild.yml +++ b/tools/appsre-ansible/rpmbuild.yml @@ -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: "*"