Skip to content

Commit

Permalink
Fail if in a rescue block
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrosi committed Apr 12, 2024
1 parent 37cf730 commit 1d39450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tasks/assert_fail_on_s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@

- name: End execution on s390x host to avoid failures in clean up
meta: end_host

# When this task file is included in a rescue block, and the above task is
# skipped, Ansible would report success considering that a failure was rescued
- name: Fail if in a rescue block
when: ansible_failed_result is defined
fail:

0 comments on commit 1d39450

Please sign in to comment.