-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redhat_subscription module fails when using "force_register" on non registered system #6258
Comments
Files identified in the description: If these files are incorrect, please update the |
Note that the comment there refers to a different thing, i.e. the |
Hello @supershal, I saw your mentions of this issue in PRs that pinned the version of community.general. Since the problem here is specific to the |
@ptoscano we pinned the version as a temporary fix to unblock us. |
@supershal thanks for the explanation; I have a question though: wouldn't it be possible to ensure the cleanup/unregistration of the system with a - block:
- redhat_subscription:
state: present
# credentials + other bits needed to register
# download packages, etc
always:
- redhat_subscription:
state: absent ? |
The |
Summary
Hi,
Up to 6.4.0 the options force_register was not doing anything (according to the commit e939cd07ef335e939e901c3ccc76523eab8d5e4a) L551)
Now the modules starts with an unregister when the option is used. So if this option is used when the system is not registered the module fails.
I think this should fails silently in this case.
Regards,
Issue Type
Bug Report
Component Name
redhat_subscription
Ansible Version
Community.general Version
Configuration
OS / Environment
RHEL 8.7
Steps to Reproduce
On an unregistered system
Expected Results
force_register should not fail when the system is not registered and just ignore the fail or skip the unregister step in this case.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: