Nested Collection

19 views
Skip to first unread message

Dhiwakar Ravikumar

unread,
Jun 14, 2021, 8:27:59 PM6/14/21
to Ansible Project
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 ?

Dhiwakar Ravikumar

unread,
Jun 16, 2021, 4:55:37 PM6/16/21
to Ansible Project
I figured out a solution, please ignore this. !
Reply all
Reply to author
Forward
0 new messages