# yum: disblerepo not working as expected

**URL:** <https://forum.ansible.com/t/yum-disblerepo-not-working-as-expected/13055>\
**Category:** Ansible Project\
**Created:** [July 2, 2013, 10:53pm UTC](https://forum.ansible.com/t/yum-disblerepo-not-working-as-expected/13055 "2013-07-02T22:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Birdsong](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@David\_Birdsong](https://forum.ansible.com/u/David_Birdsong)\
**Post date:** [July 2, 2013, 10:53pm UTC](https://forum.ansible.com/t/yum-disblerepo-not-working-as-expected/13055/1 "2013-07-02T22:53:47Z")

</div>

I have a situation where I need to be able to disable all repos and enable my custom yum repo.

I’m trying to use the yum module w/ “disablerepo=\*” and \* doesn’t seem to be passed to the command line.

- name: always update corp-base  
yum: disablerepo=\* enablerepo=corp-base-noarch  
state=latest name=$bootstrap\_rpm

None of the repos are disabled. Is there some other way to pass “all” into the module?
