Thank you Evan and Arbab. My use case here, as soon as autoscale take place and new instance are UP..I have few more plays to start ...like for an example ...installing and configuring git ...apache.....other needed settings.... so those role should identify the newly launched instances. So need a mechanism for that.
Please note :All these play/roles is part of a same playbook. Regards, Biswajit On 17 January 2015 at 14:22, Arbab Nazar <[email protected]> wrote: > > 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 a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/b1YRa4Ohdc0/unsubscribe. > To unsubscribe from this group and all its topics, 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 > <https://groups.google.com/d/msgid/ansible-project/ce6c56e5-e0f5-4ba7-af5c-ae7b9e1cbfe7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAALbdPS%2BgrGV%2ByjTCeQ%3DVmWdnTGU9PLvoTWD2Jzhpn7ncJuAPw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
