ansible / ansible-documentation

Ansible community documentation
https://docs.ansible.com/
GNU General Public License v3.0
79 stars 460 forks source link

Add examples how to make inventory caching interoperable with fact caching #1689

Open 0xFelix opened 2 months ago

0xFelix commented 2 months ago

After recent discussions I learned that if dynamic inventories cache their facts on a per host basis, then their cache can become interoperable with fact caching in Ansible.

Unfortunately this is nowhere documented and I couldn't find a single inventory that implements caching in this way. If I'm not mistaken, then all of the inventories included in the Ansible distribution only make use of source caching, to avoid load on the inventory's data source.

It would be great if more examples could be added to Developing dynamic inventory to show how caching can be made more efficient.

ansible-documentation-bot[bot] commented 2 months ago

Thanks for your Ansible docs contribution! We talk about Ansible documentation on matrix at #docs:ansible.im and on libera IRC at #ansible-docs if you ever want to join us and chat about the docs! We meet there on Tuesdays (see the Ansible calendar) and welcome additions to our weekly agenda items - scroll down to find the upcoming agenda and add a comment to put something new on that agenda.

samccann commented 2 months ago

Hey @0xFelix - do you have details from your discussions that you can add here to the issue?

0xFelix commented 2 months ago

From discussion with @bcoca I gathered:

bcoca commented 2 months ago

Adding more to the pile: