Skip to content

Conversation

@malikdotexe
Copy link

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.

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

Signed-off-by: Piyush Malik <[email protected]>
@ansible-documentation-bot ansible-documentation-bot bot added the new_contributor This PR is the first contribution by a new community member. label Nov 15, 2025
@ansible-documentation-bot
Copy link
Contributor

Thanks for your Ansible docs contribution! We talk about Ansible documentation on Matrix at #docs:ansible.im if you ever want to join us and chat about the docs! We meet on Matrix every Tuesday. See the Ansible calendar for meeting details. We welcome additions to our weekly agenda items too. You can add the dawgs-meeting tag to a forum topic to bring it up at the next meeting.

@malikdotexe
Copy link
Author

Thanks for the review! I’ve applied your suggested change. Let me know if anything else is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new_contributor This PR is the first contribution by a new community member.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants