diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2016-09-23 13:04:32 -0400 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2016-09-23 13:04:43 -0400 |
commit | 45b961243b26188872ac5355fdcb61eae5d512a1 (patch) | |
tree | 5c0d10407d943ab4721bb2b198ba1b5352137951 | |
parent | aa1e3ef2b50797edb778ab6149ead376ec21b1d3 (diff) | |
download | ansible-45b961243b26188872ac5355fdcb61eae5d512a1.tar.gz |
added note about loops being lookups
-rw-r--r-- | docsite/rst/playbooks_loops.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docsite/rst/playbooks_loops.rst b/docsite/rst/playbooks_loops.rst index 383bc481a3..b584bce9ff 100644 --- a/docsite/rst/playbooks_loops.rst +++ b/docsite/rst/playbooks_loops.rst @@ -45,6 +45,8 @@ If you have a list of hashes, you can reference subkeys using things like:: Also be aware that when combining `when` with `with_items` (or any other loop statement), the `when` statement is processed separately for each item. See :ref:`the_when_statement` for an example. +Loops are actually a combination of things `with_` + `lookup()`, so any lookup plugin can be used as a source for a loop, 'items' is lookup. + .. _nested_loops: Nested Loops |