# Show tag\_Name in playbook run

**URL:** <https://forum.ansible.com/t/show-tag-name-in-playbook-run/16730>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [November 10, 2014, 1:04am UTC](https://forum.ansible.com/t/show-tag-name-in-playbook-run/16730 "2014-11-10T01:04:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jimmy](https://forum.ansible.com/u/jimmy)\
**Post date:** [November 10, 2014, 1:04am UTC](https://forum.ansible.com/t/show-tag-name-in-playbook-run/16730/1 "2014-11-10T01:04:16Z")

</div>

Hi all,

I am currently using dynamic inventory for AWS with ec2.py and .ini and I was wondering if there was a way to show the Name tag for my instances during the playbook run. Currently it appears with the private IP addresses:

TASK: [stoddard-client | Copy client config] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [10.3.20.147]  
ok: [10.3.20.52]

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
10.3.20.147 : ok=9 changed=0 unreachable=0 failed=0  
10.3.20.52 : ok=11 changed=1 unreachable=0 failed=0

Is there a way for this to display the tag\_Name or at least the internal DNS names?

I have the following settings in ec2.ini:

destination\_variable = private\_ip\_address

vpc\_destination\_variable = private\_ip\_address

I tried changing those to private\_dns\_name and tag\_Name and doing a --refresh-cache but it still shows the ip.

I am running my Ansible server inside a VPC. Which brings up another question does that cancel out the destination\_variable setting?

Thanks!
