# repo question

**URL:** <https://forum.ansible.com/t/repo-question/12267>\
**Category:** Ansible Project\
**Created:** [January 30, 2013, 6:25pm UTC](https://forum.ansible.com/t/repo-question/12267 "2013-01-30T18:25:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Tislow](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@Luke\_Tislow](https://forum.ansible.com/u/Luke_Tislow)\
**Post date:** [January 30, 2013, 6:25pm UTC](https://forum.ansible.com/t/repo-question/12267/1 "2013-01-30T18:25:47Z")

</div>

Does enablerepo= enable that specific repo only, meaning that I would  
not need to have a disablerepo action before the enable?

-luke

---

<div class="post-metadata">

**Author:** ![Seth\_Vidal](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Post date:** [January 30, 2013, 6:28pm UTC](https://forum.ansible.com/t/repo-question/12267/2 "2013-01-30T18:28:55Z")

</div>

enablerepo just does the same as adding --enablerepo on the yum command line.

so - you'd want to disable other repos, too if you only want a specific repo to be accessed.

-sv

---

<div class="post-metadata">

**Author:** ![Luke\_Tislow](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@Luke\_Tislow](https://forum.ansible.com/u/Luke_Tislow)\
**Post date:** [January 30, 2013, 6:42pm UTC](https://forum.ansible.com/t/repo-question/12267/3 "2013-01-30T18:42:25Z")

</div>

Well I'm getting the error -

failed: [x.0.1.1] =\> {"failed": true, "msg": "unsupported parameter  
for module: disablerepo"}

My playbook has the following action before my enablerepo action -

&nbsp;&nbsp;&nbsp;&nbsp;action: yum disablerepo=\*.repo

Do I just need to manually put all the repos in there... ?

---

<div class="post-metadata">

**Author:** ![Seth\_Vidal](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Post date:** [January 30, 2013, 7:01pm UTC](https://forum.ansible.com/t/repo-question/12267/4 "2013-01-30T19:01:46Z")

</div>

your repos aren't named \*.repo

I suspect the repo FILES in /etc/yum.repos.d are named .repo - but the repo ids (the things in inside those files are not named .repo.

-sv
