Hybrid Inventory: including ec2.py groups in static hosts.aws

49 views
Skip to first unread message

Zaur Salamov

unread,
Dec 18, 2014, 8:15:45 PM12/18/14
to ansible...@googlegroups.com
Hi all. I know if put static and dynamic inventory files in the same directory ansible uses both. But I couldnt  include group name from ec2.py in hosts.aws as children. It ignores it. Ie as:

[mytest:children]
type_m1_large
tag_kafkaproducer_yes

Yaml file doesnt return the list of hosts if I use it that way. I also created sc2.sh script which joins static hosts.aws file in json format to the ec2.py output. But it doesnt work as well.
I want to use the same playbooks in both colocation and AWS without changing group names and assigning extra tags to the  AWS instances. Is there any approach to implement what I need?
Reply all
Reply to author
Forward
0 new messages