Nesting Host Groups Inside Inventory?

22 views
Skip to first unread message

Michael Serafin

unread,
Apr 4, 2016, 10:16:11 PM4/4/16
to Ansible Project
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
server2.domain.com

[Group2] - Group To Inherit Attributes
server4.domain.com

Thanks,

 Mike
Reply all
Reply to author
Forward
0 new messages