summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/blocks/issue29047_tasks.yml
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/blocks/issue29047_tasks.yml')
-rw-r--r--test/integration/targets/blocks/issue29047_tasks.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/integration/targets/blocks/issue29047_tasks.yml b/test/integration/targets/blocks/issue29047_tasks.yml
new file mode 100644
index 00000000..3470d867
--- /dev/null
+++ b/test/integration/targets/blocks/issue29047_tasks.yml
@@ -0,0 +1,13 @@
+---
+- name: "EXPECTED FAILURE"
+ block:
+ - fail:
+ msg: "EXPECTED FAILURE"
+ rescue:
+ - name: Assert that ansible_failed_task is defined
+ assert:
+ that: ansible_failed_task is defined
+
+ - name: Assert that ansible_failed_result is defined
+ assert:
+ that: ansible_failed_result is defined