mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update playbooks_blocks.rst (#40951)
Blocks currently don't support loops such as with_items or sequence. It would be helpful to make this clear in the docs otherwise it's a bit of a gotcha. +label: docsite_pr
This commit is contained in:
parent
65c9280935
commit
1682ce5263
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
Blocks
|
||||
======
|
||||
|
||||
Blocks allow for logical grouping of tasks and in play error handling. Most of what you can apply to a single task can be applied at the block level, which also makes it much easier to set data or directives common to the tasks. This does not mean the directive affects the block itself, but is inherited by the tasks enclosed by a block. i.e. a `when` will be applied to the tasks, not the block itself.
|
||||
Blocks allow for logical grouping of tasks and in play error handling. Most of what you can apply to a single task (with the exception of loops) can be applied at the block level, which also makes it much easier to set data or directives common to the tasks. This does not mean the directive affects the block itself, but is inherited by the tasks enclosed by a block. i.e. a `when` will be applied to the tasks, not the block itself.
|
||||
|
||||
|
||||
.. code-block:: YAML
|
||||
|
|
Loading…
Reference in a new issue