# Role structure in ansible\_collections/namespace/collection\_name/roles

**URL:** <https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [March 1, 2021, 9:43am UTC](https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699 "2021-03-01T09:43:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohit\_Kainth](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rohit\_Kainth](https://forum.ansible.com/u/Rohit_Kainth)\
**Post date:** [March 1, 2021, 9:43am UTC](https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699/1 "2021-03-01T09:43:38Z")

</div>

Hi Team,

I would like to know whether we have to manually create the role structure within a collection, as when creating a skeleton of collection by the following command:  
ansible-galaxy collection init namespace.collection\_name  
it did create the skeleton but the role directory is empty. Is it the default behavior while creating the collection skeleton that the role directory is empty?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 1, 2021, 7:18pm UTC](https://forum.ansible.com/t/role-structure-in-ansible-collections-namespace-collection-name-roles/34699/2 "2021-03-01T19:18:47Z")

</div>

Yes, by default it does not assume you want a role. You can always use  
ansible-galaxy to create a role skeletons in the specific collection,  
just as it is used to create a stand alone role directory.
