redhat_subscription: don't discard vars with key (#5627)

Fixes #3486. From the man-pages of subscription-manager, none of the
parameters used are tied to the activationkey except the two that remain
in its else-clause.

Note that type is not mentioned in the man-pages on 7.6 (at least), but
is still present and available.

Co-authored-by: Thor K. H <thor@roht.no>
This commit is contained in:
Pino Toscano 2022-11-30 22:15:55 +01:00 committed by GitHub
commit f7fa54eed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 10 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- redhat_subscription - do not ignore ``consumer_name`` and other variables if ``activationkey`` is specified
(https://github.com/ansible-collections/community.general/issues/3486, https://github.com/ansible-collections/community.general/pull/5627).