# Nesting Host Groups Inside Inventory?

**URL:** <https://forum.ansible.com/t/nesting-host-groups-inside-inventory/21063>\
**Category:** Ansible Project\
**Created:** [April 4, 2016, 8:55pm UTC](https://forum.ansible.com/t/nesting-host-groups-inside-inventory/21063 "2016-04-04T20:55:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Serafin](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@Michael\_Serafin](https://forum.ansible.com/u/Michael_Serafin)\
**Post date:** [April 4, 2016, 8:55pm UTC](https://forum.ansible.com/t/nesting-host-groups-inside-inventory/21063/1 "2016-04-04T20:55:35Z")

</div>

Hello all,

I was looking to find the best way duplicate attributes of one inventory group to another however I want to keep them separate for organizational reasons. I thought that I might be able to nest Group2 inside Group1 to inherit its attributes but the closest I could find to that was creating groups with the :children suffix. However what I was aiming to do was for one group to inherit the changes of another, but to still be separate since the roles are fundamentally different.

- Since I already have modified a specific service configuration on Nagios to target Group1 , I would like to know how I can duplicate that to other group(s) without further modifying the Nagios service.

[Group1] - Nagios Targeted Group  
[server1.domain.com](http://server1.domain.com)  
[server2.domain.com](http://server2.domain.com)

[Group2] - Group To Inherit Attributes  
[server3.domain.com](http://server3.domain.com)

[server4.domain.com](http://server4.domain.com)

Thanks,

Mike
