summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhawkesworth <jhawkesworth@users.noreply.github.com>2018-04-06 10:47:55 +0100
committerGitHub <noreply@github.com>2018-04-06 10:47:55 +0100
commitbb1a1fcee8ffe00e4bfa44d5a621080e5c8d5193 (patch)
treeff95588db5457d3afbea0845d09cd0d1ef6519a5
parentfc7a68875a02d61754e3fc461ed4929c9f7a9aef (diff)
downloadansible-jhawkesworth-loops-how-to-list-lookups.tar.gz
Update playbooks_loops.rstjhawkesworth-loops-how-to-list-lookups
<!--- Your description here --> label: docsite_pr
-rw-r--r--docs/docsite/rst/user_guide/playbooks_loops.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/docsite/rst/user_guide/playbooks_loops.rst b/docs/docsite/rst/user_guide/playbooks_loops.rst
index 9d21733ff7..d77eef31e4 100644
--- a/docs/docsite/rst/user_guide/playbooks_loops.rst
+++ b/docs/docsite/rst/user_guide/playbooks_loops.rst
@@ -92,10 +92,18 @@ For example, using the 'nested' lookup, you can combine lists::
password: "foo"
loop: "{{ lookup('nested', [ 'alice', 'bob' ], [ 'clientdb', 'employeedb', 'providerdb' ]) }}"
-.. note:: ``with_`` loops are actually a combination of things ``with_`` + ``lookup()``, even ``items`` is a lookup. ``loop`` can be used in the same way as shown above.
+.. note:: ``with_`` loops are actually a combination of things ``with_`` + ``lookup()``, even ``items`` is a lookup. ``loop`` can be used in the same way as shown above. To see a list of all of the lookups that ansible provides, run:
+
+.. code-block:: bash
+
+ $ ansible-doc -t lookup -l
+
.. _do_until_loops:
+.. lookup_loops:
+
+
Do-Until Loops
``````````````