mirror of https://github.com/ansible/ansible.git
parent
f5b6df14ab
commit
9792d631b1
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Fix an exit code for a non-failing playbook (https://github.com/ansible/ansible/issues/71306)
|
@ -0,0 +1,16 @@
|
||||
- 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!"
|
Loading…
Reference in New Issue