We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce04d5 commit 7063491Copy full SHA for 7063491
docs/docsite/rst/playbook_guide/playbooks_error_handling.rst
@@ -116,13 +116,13 @@ You can also combine multiple conditions for failure. This task will fail if bot
116
register: result
117
failed_when:
118
- result.rc == 0
119
- - '"No such" not in result.stdout'
+ - '"No such" not in result.stderr'
120
121
If you want the task to fail when only one condition is satisfied, change the ``failed_when`` definition to
122
123
.. code-block:: yaml
124
125
- failed_when: result.rc == 0 or "No such" not in result.stdout
+ failed_when: result.rc == 0 or "No such" not in result.stderr
126
127
If you have too many conditions to fit neatly into one line, you can split it into a multi-line YAML value with ``>``.
128
0 commit comments