# Problem with ansible.cfg file provided by repository

**URL:** <https://forum.ansible.com/t/problem-with-ansible-cfg-file-provided-by-repository/18687>\
**Category:** Ansible Project\
**Created:** [July 6, 2015, 1:39pm UTC](https://forum.ansible.com/t/problem-with-ansible-cfg-file-provided-by-repository/18687 "2015-07-06T13:39:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Federico\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Post date:** [July 6, 2015, 1:39pm UTC](https://forum.ansible.com/t/problem-with-ansible-cfg-file-provided-by-repository/18687/1 "2015-07-06T13:39:23Z")

</div>

Hi folks,

I’m having a problem with ansible.cfg file which is built inside a repo and a playbook run by Jenkins.  
Basically the problem is that Ansible not read configurations from the ansible.cfg file provided by the repo.

So, the playbook fail with: ERROR: Unable to find an inventory file, specify one with -i ?

This is mi config file:

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 6, 2015, 1:48pm UTC](https://forum.ansible.com/t/problem-with-ansible-cfg-file-provided-by-repository/18687/2 "2015-07-06T13:48:41Z")

</div>

ansible.cfg is read from current working directory, ~/.ansible.cfg or  
/etc/ansible/ansible.cfg, so you have to be in the same directory when  
executing the play to pick it up.

---

<div class="post-metadata">

**Author:** ![Federico\_Aguirre](https://avatars.discourse-cdn.com/v4/letter/f/48db29/32.png) [@Federico\_Aguirre](https://forum.ansible.com/u/Federico_Aguirre)\
**Post date:** [July 6, 2015, 1:55pm UTC](https://forum.ansible.com/t/problem-with-ansible-cfg-file-provided-by-repository/18687/3 "2015-07-06T13:55:53Z")

</div>

Thanks Brian.!!!

Yep.! It was a path problem.!!! It’s solved.!

Thanks again.!  
Fede
