# reload inventory sources between imports

**URL:** <https://forum.ansible.com/t/reload-inventory-sources-between-imports/16355>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [September 26, 2014, 8:20am UTC](https://forum.ansible.com/t/reload-inventory-sources-between-imports/16355 "2014-09-26T08:20:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwerak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jwerak/32/3731_2.png) [@jwerak](https://forum.ansible.com/u/jwerak)\
**Post date:** [September 26, 2014, 8:20am UTC](https://forum.ansible.com/t/reload-inventory-sources-between-imports/16355/1 "2014-09-26T08:20:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [September 26, 2014, 12:24pm UTC](https://forum.ansible.com/t/reload-inventory-sources-between-imports/16355/2 "2014-09-26T12:24:17Z")

</div>

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](http://docs.ansible.com/add_host_module.html)

---

<div class="post-metadata">

**Author:** ![jwerak](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jwerak/32/3731_2.png) [@jwerak](https://forum.ansible.com/u/jwerak)\
**Post date:** [September 26, 2014, 1:03pm UTC](https://forum.ansible.com/t/reload-inventory-sources-between-imports/16355/3 "2014-09-26T13:03:12Z")

</div>

Good example, thanks,

J.
