Skip to content

Commit 67e1410

Browse files
committed
unreachable hosts do not execute the always section either
1 parent 86e40df commit 67e1410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docsite/rst/playbook_guide/playbooks_blocks.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Handling errors with blocks
5858

5959
You can control how Ansible responds to task errors using blocks with ``rescue`` and ``always`` sections.
6060

61-
Rescue blocks specify tasks to run when an earlier task in a block fails. This approach is similar to exception handling in many programming languages. Ansible only runs rescue blocks after a task returns a 'failed' state. Bad task definitions and unreachable hosts will not trigger the rescue block.
61+
Rescue blocks specify tasks to run when an earlier task in a block fails. This approach is similar to exception handling in many programming languages. Ansible only runs rescue blocks after a task returns a 'failed' state. Bad task definitions and unreachable hosts will not execute the ``rescue`` or ``always`` section of a block.
6262

6363
.. _block_rescue:
6464
.. code-block:: YAML

0 commit comments

Comments
 (0)