1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

documented new wantlist feature

This commit is contained in:
Brian Coca 2015-02-19 18:15:10 -05:00
parent 57674fa047
commit a66c559818

View file

@ -2,14 +2,16 @@ Using Lookups
============= =============
Lookup plugins allow access of data in Ansible from outside sources. These plugins are evaluated on the Ansible control Lookup plugins allow access of data in Ansible from outside sources. These plugins are evaluated on the Ansible control
machine, and can include reading the filesystem but also contacting external datastores and services. machine, and can include reading the filesystem but also contacting external datastores and services.
These values are then made available using the standard templating system These values are then made available using the standard templating system
in Ansible, and are typically used to load variables or templates with information from those systems. in Ansible, and are typically used to load variables or templates with information from those systems.
.. note:: This is considered an advanced feature, and many users will probably not rely on these features. .. note:: This is considered an advanced feature, and many users will probably not rely on these features.
.. note:: Lookups occur on the local computer, not on the remote computer. .. note:: Lookups occur on the local computer, not on the remote computer.
.. note:: Since 1.9 you can pass wantlist=True to lookups to use in jinja2 template "for" loops.
.. contents:: Topics .. contents:: Topics
.. _getting_file_contents: .. _getting_file_contents: