https://github.com/ansible-provisioning/ansible-provisioning
http://jpmens.net/2013/06/18/adapting-inventory-for-ansible/
Especially for ec2 there is many modules that allows you to do that too. You can easily specify an inventory file which you populates dynamically.
There is also a lot being done about this in v1.3.
HTH
https://github.com/ansible/ansible/tree/devel/plugins/invent...
https://github.com/ansible-provisioning/ansible-provisioning
http://jpmens.net/2013/06/18/adapting-inventory-for-ansible/
Especially for ec2 there is many modules that allows you to do that too. You can easily specify an inventory file which you populates dynamically.
There is also a lot being done about this in v1.3.
HTH