# putting playbooks in subfolders while using roles

**URL:** <https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780>\
**Category:** Ansible Project\
**Created:** [October 27, 2013, 5:16pm UTC](https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780 "2013-10-27T17:16:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_Durand](https://avatars.discourse-cdn.com/v4/letter/f/90ced4/32.png) [@Francois\_Durand](https://forum.ansible.com/u/Francois_Durand)\
**Post date:** [October 27, 2013, 5:16pm UTC](https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780/1 "2013-10-27T17:16:40Z")

</div>

Hi,

I have many playbooks using several roles. The directory layout is:

playbooks/

- playbook1.yml
- playbook2.yml
- roles/
- role1/…
- role2/…

This is working nicely.

However, I’d like to be able to group playbooks in different folders, something like:

playbooks/

- p1/
- playbook1.yml
- playbook11.yml
- p2/
- playbook2.yml
- playbook2.yml

but having all of them share the same roles herarchy. This is not working because roles/ folders are looked for in the same directory as the playbook been run.  
Is there a cleaner way of doing things than having symbolic links from all playbook subfolders to the roles subfolder ?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 28, 2013, 12:26pm UTC](https://forum.ansible.com/t/putting-playbooks-in-subfolders-while-using-roles/13780/2 "2013-10-28T12:26:53Z")

</div>

You can include the role with a relative path like “…/roles”

Also in 1.4 the roles path is configurable too, so you can keep roles in one global location if you like.
