So i have a small problem, the only thing i have from the output of another 
tool is just an instance_id, along with its region. I need to grab some 
more information about the ec2 instance (such as the platform, tags, etc) 
in order to actually determine what inventory groups it belongs in. 

Unfortunately i cannot figure out how to actually acquire facts about this 
through ansible.

The ec2 module seems to be soly for the purpose of creating ec2 instances, 
and attempting to pass in region, instance_id, and state=present results in 
errors, about image not being defined. (which i get since if the ec2 
instance doesn't exist it will create it).

ec2_remote_facts only seems to work with ec2 instance tags/values, and 
unfortunately i don't have those. 

ec2_facts actually requires me to connect to the ec2 instance and gather 
facts locally. (which i can't do since i can't figure out the actual 
public_ip of the instance).

Is there any other options/alternatives? (I know i can get it from the 
awscli tool and pipe the json into yaml and then into a variable, but that 
feels kind of gross). 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/09cc5606-ce1a-40cd-b992-000b1b92e4fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to