copr-builders: even unregistering fails
Ansible fails with stderro like: /usr/sbin/subscription-manager unsubscribe --all Usage: subscription-manager MODULE-NAME [MODULE-OPTIONS] [--help] Primary Modules: attach Attach a specified subscription to the registered system list List subscription and product information for this system .... Unregister manually.
This commit is contained in:
parent
f546a6fd96
commit
1166d6acdf
1 changed files with 1 additions and 2 deletions
|
@ -105,8 +105,7 @@
|
||||||
register: subscription
|
register: subscription
|
||||||
|
|
||||||
- name: Cleanup subscription before failure
|
- name: Cleanup subscription before failure
|
||||||
community.general.redhat_subscription:
|
shell: subscription-manager unregister
|
||||||
state: absent
|
|
||||||
when: subscription.failed
|
when: subscription.failed
|
||||||
|
|
||||||
- fail: msg="Could not subscribe"
|
- fail: msg="Could not subscribe"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue