# Community.general.rhsm\_repository with purge option confusing in documentation

**URL:** <https://forum.ansible.com/t/community-general-rhsm-repository-with-purge-option-confusing-in-documentation/41786>\
**Category:** Get Help\
**Tags:** ansible\
**Created:** [April 17, 2025, 8:27am UTC](https://forum.ansible.com/t/community-general-rhsm-repository-with-purge-option-confusing-in-documentation/41786 "2025-04-17T08:27:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoniempje](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anoniempje/32/8157_2.png) [@anoniempje](https://forum.ansible.com/u/anoniempje)\
**Post date:** [April 17, 2025, 8:27am UTC](https://forum.ansible.com/t/community-general-rhsm-repository-with-purge-option-confusing-in-documentation/41786/1 "2025-04-17T08:27:43Z")

</div>

**_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](https://docs.ansible.com/ansible/latest/collections/community/general/rhsm_repository_module.html)

---

<div class="post-metadata">

**Author:** ![shertel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/shertel/32/1241_2.png) [@shertel](https://forum.ansible.com/u/shertel)\
**Post date:** [April 17, 2025, 5:39pm UTC](https://forum.ansible.com/t/community-general-rhsm-repository-with-purge-option-confusing-in-documentation/41786/2 "2025-04-17T17:39:57Z")

</div>

I think it’s just a typo, and behaves as you expect. The module supports --check and --diff together, so you could check before making any change.
