1
0
Fork 0
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:
Brian Coca 2016-02-03 14:33:25 -05:00
parent 26cd465068
commit c433289a8b

View file

@ -27,8 +27,9 @@ to the tasks.
become_user: root become_user: root
In the example above the 3 tasks will be executed only when the block's when condition is met and enables In the example above the each of the 3 tasks will be executed after appending the `when` condition from the block
privilege escalation for all the enclosed tasks. 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: .. _block_error_handling: