Lookup plugins — Ansible Documentation
docs.ansible.com › ansible › latestDec 21, 2021 · Lookup plugins are an Ansible-specific extension to the Jinja2 templating language. You can use lookup plugins to access data from outside sources (files, databases, key/value stores, APIs, and other services) within your playbooks. Like all templating, lookups execute and are evaluated on the Ansible control machine.
ansible-cached-lookup · PyPI
https://pypi.org/project/ansible-cached-lookup27.11.2018 · By default, Ansible will look for lookup plugins in an lookup_plugins folder adjacent to the running playbook. For more information on this, or to change the location where Ansible looks for lookup plugins, see the Ansible docs. Create a file called cached.py (or whatever name you picked) in the lookup_plugins directory, with one line: