You can use in ec2.ini: tag_destination_variable = Name
On Friday, April 29, 2016 at 9:47:24 AM UTC+5, Bill WANG wrote: > > Hi all, > > I got dynamic inventory for ec2 instances via ansible. But the host in > export are all IP addresses. > > > In ec2.ini > > vpc_destination_variable = private_ip_address > > > Sample of dynamic inventory output: > > "tag_Name_abc01_example_com": [ > "10_1_1_15" > ], > > > > So when run playbook, I have limit with it IP address, such as 10_1_1_15 > > What can I do do to use its tag Name as host in inventory? > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b548c87c-d037-4db2-9fdb-13025a3de82d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
