# Where to put reusable playbooks?

**URL:** <https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097>\
**Category:** Ansible Project\
**Created:** [July 10, 2013, 6:07pm UTC](https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097 "2013-07-10T18:07:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kai\_Weber](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@Kai\_Weber](https://forum.ansible.com/u/Kai_Weber)\
**Post date:** [July 10, 2013, 6:07pm UTC](https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097/1 "2013-07-10T18:07:27Z")

</div>

Where should I put reusable playbooks and how do I reference them?

I started using ansible and followed the Best Practice guide to create my  
initial project layout.

Now I have searched and found some useful playbooks on github for example  
[https://github.com/francisbesset/ansible-playbooks](https://github.com/francisbesset/ansible-playbooks). I see them as smaller  
building blocks to create roles like the webtier or DB replicates. Therefore  
I wonder how I integrate them into the "Role" based organization and how  
I reference them from my roles/webtier/task/main.yml playbook?

Any recommendation or hints where I can find some inspiration?

Regard, Kai

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [July 10, 2013, 8:58pm UTC](https://forum.ansible.com/t/where-to-put-reusable-playbooks/13097/2 "2013-07-10T20:58:01Z")

</div>

The goal of a playbook is to map hosts in a particular group to roles.

Thus, don’t think of playbooks as the unit of reuse, but think of roles as that unit.

Thus, in your play, list what roles are applied to each.

If you want to have your role/x/tasks/main.yml import other task files, it of course can, and that is a good way to pull in other tasks from a common directory or directory

# main.yml
