Dustin C. Hatch b9a046c7f4 plugins: Add lookup cache plugin
One major weakness with Ansible's "lookup" plugins is that they are
evaluated _every single time they are used_, even indirectly.  This
means, for example, a shell command could be run many times, potentially
resulting in different values, or executing a complex calculation that
always provides the same result.  Ansible does not have a built-in way
to cache the result of a `lookup` or `query` call, so I created this
one.  It's inspired by [ansible-cached-lookup][0], which didn't actually
work and is apparently unmaintained.  Instead of using a hard-coded
file-based caching system, however, my plugin uses Ansible's
configuration and plugin infrastructure to store values with any
available cache plugin.

Although looking up the _pyrocufflink.net_ wildcard certificate with the
Kubernetes API isn't particularly expensive by itself right now, I can
envision several other uses that may be.  Having this plugin available
could speed up future playbooks.

[0]: https://pypi.org/project/ansible-cached-lookup
2025-07-13 16:02:57 -05:00
2024-02-22 10:23:19 -06:00
2024-11-24 10:33:21 -06:00
2024-11-05 06:54:27 -06:00
2025-07-13 16:02:57 -05:00
2025-01-26 13:08:59 -06:00
2024-09-02 21:24:59 -05:00
2025-07-13 16:02:57 -05:00
2020-02-22 16:28:06 -06:00
2025-07-13 16:02:57 -05:00
2018-04-08 12:20:03 -05:00
2018-08-19 14:17:48 -05:00
2025-03-16 16:37:19 -05:00
2018-03-27 20:44:43 -05:00
2024-08-24 11:46:28 -05:00
2024-06-12 18:56:41 -05:00
2018-10-07 21:42:18 -05:00
2024-11-24 10:33:21 -06:00
2024-01-09 18:18:34 -06:00
2023-11-13 17:45:21 -06:00
2022-08-10 21:55:54 -05:00
2020-08-29 14:22:17 -05:00
2018-04-08 10:11:43 -05:00
2025-03-16 16:37:19 -05:00
2018-08-12 10:14:25 -05:00
2018-08-12 10:14:25 -05:00
2018-08-12 10:14:25 -05:00
2018-08-12 10:14:25 -05:00
2024-11-24 10:33:21 -06:00
2023-05-09 21:37:46 -05:00
2024-09-02 21:03:33 -05:00
2024-01-19 20:50:03 -06:00
2025-01-26 13:08:59 -06:00
2018-03-27 20:44:43 -05:00
2018-08-13 20:25:22 -05:00
2019-09-19 19:51:45 -05:00
2025-03-16 17:17:00 -05:00
2025-01-26 13:08:59 -06:00
2022-08-11 21:40:19 -05:00
Description
Ansible configuration policy for the private network/home lab of Dustin C. Hatch
http://dustin.hatch.name/
7.7 MiB
Languages
Jinja 86.2%
Python 6.6%
Shell 4.6%
Groovy 2.6%