Update example syntax in playbooks_error_handling.rst. (#35675)

This commit is contained in:
Joshua Smith 2018-02-03 06:29:58 -05:00 committed by John R Barker
parent 3fe6de475b
commit 6179bd378c

View file

@ -89,7 +89,8 @@ In previous version of Ansible, this can still be accomplished as follows::
ignore_errors: True ignore_errors: True
- name: fail the play if the previous command did not succeed - 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" when: "'FAILED' in command_result.stderr"
.. _override_the_changed_result: .. _override_the_changed_result: