Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note to section 'Loops' that the 'when:' statement is processed per-item #10404

Merged
merged 1 commit into from
Mar 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions docsite/rst/playbooks_conditionals.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ whether the hosts match other criteria. There are many options to control exec

Let's dig into what they are.

.. _the_when_statement:

The When Statement
``````````````````

Expand Down
2 changes: 2 additions & 0 deletions docsite/rst/playbooks_loops.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ If you have a list of hashes, you can reference subkeys using things like::
- { name: 'testuser1', groups: 'wheel' }
- { name: 'testuser2', groups: 'root' }

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.

.. _nested_loops:

Nested Loops
Expand Down