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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
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?