ansible/test/integration/targets/blocks/issue71306.yml
2020-08-27 12:22:45 -05:00

16 lines
339 B
YAML

- hosts: all
gather_facts: no
tasks:
- block:
- block:
- block:
- name: EXPECTED FAILURE
fail:
when: ansible_host == "host1"
- debug:
msg: "I am successful!"
run_once: true
rescue:
- debug:
msg: "Attemp 1 failed!"