mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
clarified how block applies directives to tasks
previous text could be interpreted as the block itself doing the evaluation and skipping
This commit is contained in:
parent
26cd465068
commit
c433289a8b
1 changed files with 3 additions and 2 deletions
|
@ -27,8 +27,9 @@ to the tasks.
|
|||
become_user: root
|
||||
|
||||
|
||||
In the example above the 3 tasks will be executed only when the block's when condition is met and enables
|
||||
privilege escalation for all the enclosed tasks.
|
||||
In the example above the each of the 3 tasks will be executed after appending the `when` condition from the block
|
||||
and evaluating it in the task's context. Also they inherit the privilege escalation directives enabling "become to root"
|
||||
for all the enclosed tasks.
|
||||
|
||||
|
||||
.. _block_error_handling:
|
||||
|
|
Loading…
Reference in a new issue