# Nested Collection

**URL:** <https://forum.ansible.com/t/nested-collection/35348>\
**Category:** Ansible Project\
**Created:** [June 15, 2021, 12:27am UTC](https://forum.ansible.com/t/nested-collection/35348 "2021-06-15T00:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dhiwakar\_Ravikumar](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Post date:** [June 15, 2021, 12:27am UTC](https://forum.ansible.com/t/nested-collection/35348/1 "2021-06-15T00:27:59Z")

</div>

Hi

Can someone please comment on whether or or it is possible, whether or not it is recommended to nest collections inside of other collections ?

I would like to develop a collection of custom modules, which are again composed of other modules.

For example, I would like to develop custom modules like

virtual\_machine.disk.add  
virtual\_machine.disk.remove

virtual\_machine.disk.resize

…  
virtual\_machine.nic.add  
virtual\_machine.nic.remove

…

where a module like disk would invoke another module called add, remove etc.

as opposed to having virtual\_machine\_disk\_add  
virtual\_machine\_disk\_remove

all as separate modules which share a lot of module\_utils in the background.

Is this something that can be achieved ?

---

<div class="post-metadata">

**Author:** ![Dhiwakar\_Ravikumar](https://avatars.discourse-cdn.com/v4/letter/d/ecc23a/32.png) [@Dhiwakar\_Ravikumar](https://forum.ansible.com/u/Dhiwakar_Ravikumar)\
**Post date:** [June 16, 2021, 8:55pm UTC](https://forum.ansible.com/t/nested-collection/35348/2 "2021-06-16T20:55:37Z")

</div>

I figured out a solution, please ignore this. !
