Skip to content

Conversation

@patchback
Copy link

@patchback patchback bot commented Dec 3, 2025

This is a backport of PR #3249 as merged into devel (7cefbd2).

SUMMARY
Improve the Ansible error handling documentation by clarifying failed_when conditions and fixing minor syntax errors.

ISSUE TYPE

  • Docs Pull Request

COMPONENT NAME
playbook_guide/playbooks_error_handling.rst

ANSIBLE VERSION
N/A

ADDITIONAL INFORMATION
This PR makes three key improvements to the error handling documentation:

  1. Enhanced failed_when explanation: Added a practical example showing how to use the or operator in failed_when conditions, making it clearer that users can trigger failure when ANY condition is met (not just all conditions).

  2. Template syntax fix: Corrected malformed Jinja2 braces by removing extra space in {{ log_path }}{{ log_file }}.

These changes improve readability and correctness of the documentation without changing any functionality.

* Improve failed_when documentation and fix minor errors

- Add clarifying example for 'or' operator in failed_when conditions
- Fix template syntax: remove extra space in Jinja2 braces

Signed-off-by: Piyush Malik <piyush.malik@optimoloan.com>

* Update docs/docsite/rst/playbook_guide/playbooks_error_handling.rst

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Signed-off-by: Piyush Malik <piyush.malik@optimoloan.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 7cefbd2)
@oraNod oraNod merged commit d75126a into stable-2.20 Dec 3, 2025
11 of 12 checks passed
@oraNod oraNod deleted the patchback/backports/stable-2.20/7cefbd2a0c80ae0d5b3e7fee2d114ed43f9c05b0/pr-3249 branch December 3, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants