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:
parent
9e5fdc80ee
commit
574c9d7d95
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue