# galaxy role path within repo

**URL:** <https://forum.ansible.com/t/galaxy-role-path-within-repo/19653>\
**Category:** Ansible Developer\
**Tags:** galaxy-ng\
**Created:** [October 29, 2015, 6:45pm UTC](https://forum.ansible.com/t/galaxy-role-path-within-repo/19653 "2015-10-29T18:45:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Williams](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@Matthew\_Williams](https://forum.ansible.com/u/Matthew_Williams)\
**Post date:** [October 29, 2015, 6:45pm UTC](https://forum.ansible.com/t/galaxy-role-path-within-repo/19653/1 "2015-10-29T18:45:56Z")

</div>

As far as I can tell, the src provided in a Galaxy requirements.yml must provide the role structure at its root in order for Galaxy to pull it in from a requirements file. It seems it would be useful to have the ability to provide a path to the role within the src. For example, I would like to have an ansible-role directory within the source for a project.

It looks like this would require a few lines to be added to [https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/role.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/galaxy/role.py). If there is any interest in this, I will open a merge request.

Regards,  
Matthew Williams
