# roles\_path issues

**URL:** <https://forum.ansible.com/t/roles-path-issues/16530>\
**Category:** Ansible Project\
**Created:** [October 16, 2014, 8:44am UTC](https://forum.ansible.com/t/roles-path-issues/16530 "2014-10-16T08:44:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Laird](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@Daniel\_Laird](https://forum.ansible.com/u/Daniel_Laird)\
**Post date:** [October 16, 2014, 8:44am UTC](https://forum.ansible.com/t/roles-path-issues/16530/1 "2014-10-16T08:44:15Z")

</div>

All,

I am fairly sure I am being stupid but…  
I have some roles somewhere on my PC.  
I have added to the roles\_path setting in both the local dir and /etc/ansible/ansible.cfg

However when it runs it fails to find the role.  
More annoyingly the message tells me where it looked and it does not even print out the path I have added to the roles\_path variable.  
I tested by adding /bob/ to my roles\_path setting and when it runs I get:  
ERROR: cannot find role in somedir or anotherdir

But no mention of even trying to look in /bob

Any clues on how to debug or what I might be doing wrong?

Cheers  
Dan

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 20, 2014, 9:09pm UTC](https://forum.ansible.com/t/roles-path-issues/16530/2 "2014-10-20T21:09:41Z")

</div>

Sounds like you have roles\_path set in a config file that ansible is not reading, because it’s likely in the wrong place, which /etc/ansible/ansible.cfg is not wrong - so perhaps you have the roles\_path in a different config section.

I’d need to see the config file to say.
