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

**URL:** <https://forum.ansible.com/t/hybrid-inventory-including-ec2-py-groups-in-static-hosts-aws/17102>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [December 19, 2014, 1:15am UTC](https://forum.ansible.com/t/hybrid-inventory-including-ec2-py-groups-in-static-hosts-aws/17102 "2014-12-19T01:15:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zaur\_Salamov](https://avatars.discourse-cdn.com/v4/letter/z/cc9497/32.png) [@Zaur\_Salamov](https://forum.ansible.com/u/Zaur_Salamov)\
**Post date:** [December 19, 2014, 1:15am UTC](https://forum.ansible.com/t/hybrid-inventory-including-ec2-py-groups-in-static-hosts-aws/17102/1 "2014-12-19T01:15:45Z")

</div>

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?
