# Dynamic Inventory and Openstack: how to cache ?

**URL:** <https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731>\
**Category:** Ansible Project\
**Created:** [October 6, 2016, 2:28pm UTC](https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731 "2016-10-06T14:28:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Vandergucht](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@David\_Vandergucht](https://forum.ansible.com/u/David_Vandergucht)\
**Post date:** [October 6, 2016, 2:28pm UTC](https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731/1 "2016-10-06T14:28:17Z")

</div>

Hi !  
I cannot find any example of cloud.yaml configuring openstack for dynamic inventory with caching. Right now, each run takes forever to start because it is repopulating from openstack every time.  
How should i do ?

Cheers

David

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 10, 2017, 3:01am UTC](https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731/2 "2017-02-10T03:01:01Z")

</div>

The openstack libraries control the caching, look at the config there.

---

<div class="post-metadata">

**Author:** ![Ilyes\_Semlali](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Ilyes\_Semlali](https://forum.ansible.com/u/Ilyes_Semlali)\
**Post date:** [March 26, 2018, 2:00pm UTC](https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731/3 "2018-03-26T14:00:07Z")

</div>

Any suggestions on where to find some documentation on “the config there” ? I’ve looked through a few source code to check which key to add to my /etc/ansible/openstack.yml file.  
All I could find was : [https://github.com/ansible/ansible/blob/devel/contrib/inventory/openstack.yml](https://github.com/ansible/ansible/blob/devel/contrib/inventory/openstack.yml)  
I really need to cache my inventory, my cloud provider has set an unlimitted timeout when he blacklists IPs that perform too much requests on keystone.

Thank’s in advance for you answer

---

<div class="post-metadata">

**Author:** ![Ilyes\_Semlali](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@Ilyes\_Semlali](https://forum.ansible.com/u/Ilyes_Semlali)\
**Post date:** [March 27, 2018, 9:15am UTC](https://forum.ansible.com/t/dynamic-inventory-and-openstack-how-to-cache/22731/4 "2018-03-27T09:15:48Z")

</div>

I’ve found some doc !

[https://docs.openstack.org/os-client-config/latest/user/configuration.html#ipv6](https://docs.openstack.org/os-client-config/latest/user/configuration.html#ipv6)
