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.
17 lines
334 B
YAML
17 lines
334 B
YAML
5 years ago
|
- hosts: localhost
|
||
|
gather_facts: no
|
||
|
tasks:
|
||
|
- block:
|
||
|
- name: EXPECTED FAILURE
|
||
|
fail:
|
||
|
msg: Failure in block
|
||
|
rescue:
|
||
|
- debug:
|
||
|
msg: Rescue
|
||
|
always:
|
||
|
- name: EXPECTED FAILURE
|
||
|
fail:
|
||
|
msg: Failure in always
|
||
|
- debug:
|
||
|
msg: DID NOT RUN
|