reload inventory sources between imports

109 views
Skip to first unread message

Jakub Veverka

unread,
Sep 26, 2014, 4:20:48 AM9/26/14
to ansible...@googlegroups.com
Hi,

I have several plays to setup coreos stack:
The first brings up aws machines, the second one creates ssh_config ( need to communicate via proxycommand ) based on aws inventory groups.

Is it possible to reload inventory between steps 1 and 2, or do I have to run ansible-playbook twice?

# cat site.yml

- include: coreos.yml

- include: ssh_config.yml

- include: docker_image.yml

- include: coreos_apps.yml
 

Michael DeHaan

unread,
Sep 26, 2014, 8:24:21 AM9/26/14
to ansible...@googlegroups.com
No.

But look at the "add_host" module examples, prominently featured in things like the ec2 examples, for how to do this without reloading inventory.


--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f14c1ecf-f690-4ff1-8338-e2424c6f0eb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jakub Veverka

unread,
Sep 26, 2014, 9:03:12 AM9/26/14
to ansible...@googlegroups.com
Good example, thanks,

J.
Reply all
Reply to author
Forward
0 new messages