Update example syntax in playbooks_error_handling.rst. (#35675)
This commit is contained in:
parent
3fe6de475b
commit
6179bd378c
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ In previous version of Ansible, this can still be accomplished as follows::
|
|||
ignore_errors: True
|
||||
|
||||
- name: fail the play if the previous command did not succeed
|
||||
fail: msg="the command failed"
|
||||
fail:
|
||||
msg: "the command failed"
|
||||
when: "'FAILED' in command_result.stderr"
|
||||
|
||||
.. _override_the_changed_result:
|
||||
|
|
Loading…
Reference in a new issue