# Using dynamic inventory with ec2.py show tag name

**URL:** <https://forum.ansible.com/t/using-dynamic-inventory-with-ec2-py-show-tag-name/19066>\
**Category:** Ansible Project\
**Created:** [August 19, 2015, 10:06pm UTC](https://forum.ansible.com/t/using-dynamic-inventory-with-ec2-py-show-tag-name/19066 "2015-08-19T22:06:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@justin](https://forum.ansible.com/u/justin)\
**Post date:** [August 19, 2015, 10:06pm UTC](https://forum.ansible.com/t/using-dynamic-inventory-with-ec2-py-show-tag-name/19066/1 "2015-08-19T22:06:36Z")

</div>

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?
