Hi Giovanni Thanks for the prompt response. If I'm reading the doc correctly, the new group can only be used in the same playbook. Is it so? I'm using more than one playbook, including all of the from one "super" playbook.
On Thu, Jan 29, 2015 at 3:01 PM, Giovanni Tirloni <[email protected]> wrote: > > > > On Thu, 29 Jan 2015 04:33 -0800, Tzach Livyatan > <[email protected]> wrote: > > Hi all > > I'm using ec2 module to launch EC2 instances in one play book, and "-i > ec2.py" to query a subset of the instances in a second playbook. > > So far so good. > > > > The problem I have is when I started to call both play books, using > include, from one "super" playbook. > > AFAIU, the inventory did not refresh, so the second one failed. > > Try dynamically including new machines to groups with add_host: > > http://docs.ansible.com/add_host_module.html > http://docs.ansible.com/ec2_module.html (see examples at bottom) > > Giovanni > > -- > 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/1x5hFy4dzcQ/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/1422536489.564465.220466761.4A784836%40webmail.messagingengine.com > . > For more options, visit https://groups.google.com/d/optout. > -- Regards @TzachL -- 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/CAGLV4VcHJsQbUCr6zAA0zS69QoF0Xit%2BcF5yBctb0hXabPqbQQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
