Hi, 

After instance launched using   ec2_asg  , I wish to add newly created 
instance to ansible control machin's host group. 
I need to get the public ip and public dns of launched instances. 

I wonder , if registering the ec2_asg output to a list , say asg_result and 
then getting the ip (item.public_ip) as asg_result.instances will work ?

Please let me know the best practices for the same .

Regards,
Biswajit

-- 

Using a smartphone? Try our app for property search 
<http://www.commonfloor.com/mobile> and app for residential communities 
<http://groups.commonfloor.com/mobile>.
------------------------------------------------------------------------------------------------------------------
This e-mail and any files transmitted with it may contain confidential and 
privileged information are for the sole use of the intended recipient(s) . 
If you are not the intended recipient, please appraise the sender by reply 
e-mail and destroy all copies and the original message. Any unauthorized 
disclosure, dissemination, forwarding, printing or copying of this email or 
any action taken on this e-mail is strictly prohibited and may be unlawful. 

-- 
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/f784a85a-75c0-4c60-a276-721a1132da23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to