Description: behaviour of purge option of community.general.rhsm_repository unclear.
- Give a clear explanation (and steps to reproduce the issue where possible)
The documentation of the purge option of rhsm_repository says:
Disable all currently enabled repositories that are not not specified in name. Only set this to true if passing in a list of repositories to the name field. Using this with loop will most likely not have the desired result.
This is unclear due to the usage of the double negation ’ not not’ . Two negatives make a positive but then why not write ’ Disable all currently enabled repositories that are specified in ’ name’ ? Also i think the correct behaviour is ‘not’ (so it disables all repos that are NOT specified in name). At least that is the behaviour that I would like to use.
- Include the version(s) of the relevant software tools, libraries, collections etc
-community.general.rhsm_repository module – Manage RHSM repositories using the subscription-manager command — Ansible Community Documentation