ansible with AWS inventory (ec2.py) returns rds, etc

293 views
Skip to first unread message

Raj Desikavinayagompillai

unread,
May 1, 2015, 2:43:40 PM5/1/15
to ansible...@googlegroups.com
Hello,
Running the ec2.py inventory script as follows

ec2.py --list

I have a filter for instance type based on app name='xyx'.

This should return only sepecific app-servers which I am restricing in the call.
But it returning all hosts in the group including the rds instance names.
Filter in ec2.ini is not working either. Is there any debug option available to troubleshoot the same issue?

thanks
dnraj

Baraa Basata

unread,
May 2, 2015, 2:47:46 PM5/2/15
to ansible...@googlegroups.com
Hi Raj,

There is an option in ec2.ini to exclude RDS instances:


I hope this is helpful.
-Baraa

Raj Desikavinayagompillai

unread,
May 4, 2015, 8:20:41 PM5/4/15
to ansible...@googlegroups.com
Thanks Baraa. 
I wrote a custom AWS shell script to create an inventory file for my needs.

Reply all
Reply to author
Forward
0 new messages