mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
394 B
YAML
18 lines
394 B
YAML
2 years ago
|
- hosts: localhost
|
||
|
gather_facts: false
|
||
|
tasks:
|
||
|
- block:
|
||
|
- block:
|
||
|
- name: EXPECTED FAILURE
|
||
|
fail:
|
||
|
always:
|
||
|
- block:
|
||
|
- debug:
|
||
|
always:
|
||
|
- debug:
|
||
|
rescue:
|
||
|
- assert:
|
||
|
that:
|
||
|
- ansible_failed_task is defined
|
||
|
- ansible_failed_result is defined
|