redhat_subscription: manually unregister only when registered (#6259)

When registering using D-Bus and using a version of subscription-manager
with an unimplemented 'force' option, then unregister manually the
system only if it is registered. 'subscription-manager unregister'
errors out when trying to unregister an already unregistered system.
This commit is contained in:
Pino Toscano
2023-04-03 21:03:43 +02:00
committed by GitHub
parent 33093e9f3e
commit c9e11e5c0c
2 changed files with 14 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
bugfixes:
- redhat_subscription - try to unregister only when already registered when ``force_register`` is specified
(https://github.com/ansible-collections/community.general/issues/6258,
https://github.com/ansible-collections/community.general/pull/6259).