Using dynamic inventory with ec2.py show tag name

60 views
Skip to first unread message

jus...@brandcast.com

unread,
Aug 19, 2015, 10:02:19 PM8/19/15
to Ansible Project
I am using dynamic inventory with the ec2.py and ec2.ini and it is working great, except that the output of:

ansible all -m ping

shows:

52.5.102.121 | success >> {
    "changed": false,
    "ping": "pong"
}

54.5.16.113 | success >> {
    "changed": false,
    "ping": "pong"
}

54.5.47.18 | success >> {
    "changed": false,
    "ping": "pong"
}

52.5.122.122 | success >> {
    "changed": false,
    "ping": "pong"
}

52.5.40.121 | success >> {
    "changed": false,
    "ping": "pong"
}

52.5.106.125 | success >> {
    "changed": false,
    "ping": "pong"
}

Showing the ip address is not very useful. I'd rather show the Tag:Name with ip address instead. Is this possible?
Reply all
Reply to author
Forward
0 new messages