Hi,

I am currently working on using Ansible for implementing rolling upgrade 
feature.

I was trying to gather ec2_facts using dynamic inventory however it outputs 
null and is not able to gather any information

command used:

 ansible localhost  -i ec2.py -m ec2_facts 

OUTPUT

localhost | success >> {
"ansible_facts": {
    "ansible_ec2_public-key": null,
    "ansible_ec2_public_key": null,
    "ansible_ec2_user-data": null,
    "ansible_ec2_user_data": null
},
"changed": false
}

If I am trying it using

 ansible all  -i ec2.py -m ec2_facts 

I recieve the following OUTPUT

No hosts matched

Can anyone point out what I am missing here ? Thanks


I am able to get host information if I am doing 

./ec2.py --list

-- 
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/c561deb7-703a-4aa1-b398-cb59e219c408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to