reload inventory sources between imports

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

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.

http://docs.ansible.com/add_host_module.html

Good example, thanks,

J.