# Ansible directory structure - playbook sub directories - alternative structure

**URL:** <https://forum.ansible.com/t/ansible-directory-structure-playbook-sub-directories-alternative-structure/28169>\
**Category:** Ansible Project\
**Created:** [July 26, 2018, 9:31pm UTC](https://forum.ansible.com/t/ansible-directory-structure-playbook-sub-directories-alternative-structure/28169 "2018-07-26T21:31:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lee\_Drew](https://avatars.discourse-cdn.com/v4/letter/l/e0b2c6/32.png) [@Lee\_Drew](https://forum.ansible.com/u/Lee_Drew)\
**Post date:** [July 26, 2018, 9:31pm UTC](https://forum.ansible.com/t/ansible-directory-structure-playbook-sub-directories-alternative-structure/28169/1 "2018-07-26T21:31:20Z")

</div>

On the Ansible best practices page it lists a suggested directory structure - [https://docs.ansible.com/ansible/2.5/user\_guide/playbooks\_best\_practices.html](https://docs.ansible.com/ansible/2.5/user_guide/playbooks_best_practices.html)

I’ve only recently started using Ansible, and so far for this massive project I’m working on I’ve created a playbook directory - and within this I’ve created sub-folders. An example I’ve provided below.

.ansible  
ansible.cfg

> — inventory
> 
> > – dev.yml  
> > – test.yml  
> > – prod.yml  
> > — playbooks  
> > — App1  
> > — play.yml  
> > — scripts  
> > — vars  
> > — files  
> > — DomainController  
> > — GIS

Why is it suggested to have all plays at the root (or within a single folder)? Is there anything wrong with the approach I’ve taken so the plays can be grouped by “project/purpose”?
