724b3648ea
Fixes #71306
(cherry picked from commit 9792d631b1
)
16 lines
339 B
YAML
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!"
|