Show tag_Name in playbook run

25 views
Skip to first unread message

ji...@pristine.io

unread,
Nov 9, 2014, 8:04:16 PM11/9/14
to ansible...@googlegroups.com
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!
Reply all
Reply to author
Forward
0 new messages