tools/appsre-ansible: fix unregister

The community redhat_subscription module calls `subscription-manager
unsusbscribe`, which doesn't exist. Use shell for now.
This commit is contained in:
Sanne Raymaekers 2024-08-26 13:55:11 +02:00
parent 9e5fdc80ee
commit 574c9d7d95

View file

@ -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