diff --git a/docs/docsite/rst/playbooks_error_handling.rst b/docs/docsite/rst/playbooks_error_handling.rst index 473adb5fa3c..8da183a2369 100644 --- a/docs/docsite/rst/playbooks_error_handling.rst +++ b/docs/docsite/rst/playbooks_error_handling.rst @@ -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: