blob: 404f7a379232b6c6ee0794f0b7b93522bd2e0eec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
- hosts: localhost
gather_facts: no
tasks:
- block:
- name: EXPECTED FAILURE
fail:
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
|