# RedHat Subscription Manager enable/disable repos

**URL:** <https://forum.ansible.com/t/redhat-subscription-manager-enable-disable-repos/23739>\
**Category:** Ansible Project\
**Created:** [February 15, 2017, 3:19pm UTC](https://forum.ansible.com/t/redhat-subscription-manager-enable-disable-repos/23739 "2017-02-15T15:19:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zack\_Windoloski](https://avatars.discourse-cdn.com/v4/letter/z/898d66/32.png) [@Zack\_Windoloski](https://forum.ansible.com/u/Zack_Windoloski)\
**Post date:** [February 15, 2017, 3:19pm UTC](https://forum.ansible.com/t/redhat-subscription-manager-enable-disable-repos/23739/1 "2017-02-15T15:19:28Z")

</div>

After registering to a subscription using the redhat\_subscription module, I would then like to enable and disable some repos.  
This task would be done manually using “subscription-manager repos --enable=myrepo”  
Would using the yum\_repository module work to do this? Or is there another solution because it uses RHSM?
