# CentOS repository patching

**URL:** <https://forum.ansible.com/t/centos-repository-patching/33234>\
**Category:** Ansible Project\
**Created:** [June 23, 2020, 12:31pm UTC](https://forum.ansible.com/t/centos-repository-patching/33234 "2020-06-23T12:31:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snehal\_Mehar](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Snehal\_Mehar](https://forum.ansible.com/u/Snehal_Mehar)\
**Post date:** [June 23, 2020, 12:31pm UTC](https://forum.ansible.com/t/centos-repository-patching/33234/1 "2020-06-23T12:31:38Z")

</div>

Hello,

I need help with setting up Centos client-server with centos repository URL. It should add a repository URL to the client-server and patch to the next available version identifying the existing os version.

I have created a role but the patching task gets failed because of no mirrors found. Any help here would be appreciated.

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [June 25, 2020, 3:03am UTC](https://forum.ansible.com/t/centos-repository-patching/33234/2 "2020-06-25T03:03:57Z")

</div>

This sounds like the repo file template isn’t constructed properly.

Did you compare the resulting repo file with one that you know works on another server?

---

<div class="post-metadata">

**Author:** ![Snehal\_Mehar](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Snehal\_Mehar](https://forum.ansible.com/u/Snehal_Mehar)\
**Post date:** [June 25, 2020, 7:05am UTC](https://forum.ansible.com/t/centos-repository-patching/33234/3 "2020-06-25T07:05:35Z")

</div>

Thank you Dick for your reply. I was able to solve it when I added extra repo configuration in the centos.repo.j2 file. See below…
