From 574c9d7d9584a0ae22d885415c33ce8b729e46c4 Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Mon, 26 Aug 2024 13:55:11 +0200 Subject: [PATCH] tools/appsre-ansible: fix unregister The community redhat_subscription module calls `subscription-manager unsusbscribe`, which doesn't exist. Use shell for now. --- tools/appsre-ansible/rpmbuild.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/appsre-ansible/rpmbuild.yml b/tools/appsre-ansible/rpmbuild.yml index 1b2638a9f..fd94e6a88 100644 --- a/tools/appsre-ansible/rpmbuild.yml +++ b/tools/appsre-ansible/rpmbuild.yml @@ -171,9 +171,10 @@ src: /home/ec2-user/rpmbuild/RPMS dest: /osbuild-composer/templates/packer/ansible/roles/common/files/rpmbuild/{{ ansible_architecture }} - - name: Unsubscribe - register: result + - name: Unregister retries: 5 + delay: 20 + register: result until: result is success - community.general.redhat_subscription: - state: absent + shell: >- + subscription-manager unregister