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.
ansible/test/integration/targets/blocks/issue71306.yml

17 lines
340 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: "Attempt 1 failed!"