Hi Biswajit, can you please paste the output of the "asg_result" and i'll try to help you that how you can add the ip to the hosts file.
@Ivan, he also give you really good suggestion but if you want to register the ip address then please paste the output of the "asg_result". Thanks On Thursday, January 15, 2015 at 11:30:28 PM UTC+5, [email protected] wrote: > > 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/ce6c56e5-e0f5-4ba7-af5c-ae7b9e1cbfe7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
