Lookups — Ansible Documentation
docs.ansible.com › ansible › 2Lookups ¶. Lookup plugins allow access of data in Ansible from outside sources. Like all templating, these plugins are evaluated on the Ansible control machine, and can include reading the filesystem but also contacting external datastores and services.
Lookup plugins — Ansible Documentation
docs.ansible.com › ansible › latestDec 21, 2021 · In Ansible 2.5, a new Jinja2 function called query was added for invoking lookup plugins. The difference between lookup and query is largely that query will always return a list. The default behavior of lookup is to return a string of comma separated values. lookup can be explicitly configured to return a list using wantlist=True.