Hi all. I am running into an issue and I am having trouble figuring out the 
problem. 

I am trying to set up Ansible with the ec2.py script replacing 
/etc/ansible/hosts with ec2.py and I am attempting to list my instances 
with tag_Name.

I am running Ansible inside an Amazon VPC so I have the following settings 
in ec2.ini

destination_variable = private_dns_name
vpc_destination_variable = private_ip_address

When I run ec2.py --list it works:

: ./ec2.py --list
{
  "_meta": {
    "hostvars": {
      "10.30.15.0": {
        "ec2__in_monitoring_element": false,
        "ec2_ami_launch_index": "0",

If I change vpc_destination_variable to other things like id or image_id it 
works. But if I set it to tag_Name I get the following error:

AttributeError: 'Instance' object has no attribute 'tag_Name'

I see tag_Name as an attribute when I do ec2.py --host HOST 

What am I missing here? I am using Ansible 1.7.2

Thanks!

-- 
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/6c39f599-3659-419e-a951-5e37cc562c6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to