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 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/1422536489.564465.220466761.4A784836%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to