# Directory to store ansible's playbooks

**URL:** <https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853>\
**Category:** Ansible Project\
**Created:** [July 24, 2019, 4:58am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853 "2019-07-24T04:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user89](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@user89](https://forum.ansible.com/u/user89)\
**Post date:** [July 24, 2019, 4:58am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853/1 "2019-07-24T04:58:51Z")

</div>

Hello team!

Read the documentation and didn’t find where playbooks ansible should be store only advice that they should be under source control.

I see /etc/ansible/roles directory installed by default. Is it mean that here should be /etc/ansible/playbooks? Or I can store playbook anywhere /opt/ansible, for example?

Are playbooks during the execution expect that they are will running from /etc/ansible and not any other dir?

Thank you for clarification.

---

<div class="post-metadata">

**Author:** ![Andrew\_Feller](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@Andrew\_Feller](https://forum.ansible.com/u/Andrew_Feller)\
**Post date:** [July 24, 2019, 9:43am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853/2 "2019-07-24T09:43:02Z")

</div>

Your collection of playbooks, roles, etc can live anywhere on the filesystem you want. Yes, ansible has conventions on specific places on the filesystem it will check, however I think most house their collection where it makes sense for the operators and/or processes they have.

Rather than an absolute path, I would focus on the various relative paths that ansible supports for locating content as you leverage ansible for your needs.

Here’s some additional docs worth reading:

[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#id11](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#id11)  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#id12](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#id12)

---

<div class="post-metadata">

**Author:** ![user89](https://avatars.discourse-cdn.com/v4/letter/u/0ea827/32.png) [@user89](https://forum.ansible.com/u/user89)\
**Post date:** [July 25, 2019, 6:14am UTC](https://forum.ansible.com/t/directory-to-store-ansibles-playbooks/30853/3 "2019-07-25T06:14:05Z")

</div>

Thanks for answer! That is what I want to hear, to confirm that I am thinking in a right direction.
