mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Mark tasks expected to fail with EXPECTED FAILURE.
This allows for automated identification of tasks which are expected to fail, but which cannot use ignore_errors because they need to fail.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
- fail: msg="{{msg}}"
|
||||
- name: EXPECTED FAILURE
|
||||
fail: msg="{{msg}}"
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
- name: set block tasks run flag
|
||||
set_fact:
|
||||
block_tasks_run: true
|
||||
- name: fail in tasks
|
||||
- name: EXPECTED FAILURE fail in tasks
|
||||
fail:
|
||||
- name: tasks flag should not be set after failure
|
||||
set_fact:
|
||||
@@ -24,7 +24,7 @@
|
||||
- name: set block rescue run flag
|
||||
set_fact:
|
||||
block_rescue_run: true
|
||||
- name: fail in rescue
|
||||
- name: EXPECTED FAILURE fail in rescue
|
||||
fail:
|
||||
- name: tasks flag should not be set after failure in rescue
|
||||
set_fact:
|
||||
|
||||
Reference in New Issue
Block a user