mirror of https://github.com/ansible/ansible.git
parent
42e2f09b97
commit
8d981766a2
@ -0,0 +1,3 @@
|
|||||||
|
bugfixes:
|
||||||
|
- Fix an issue where rescued hosts were excluded from subsequent plays when ``any_errors_fatal`` was set (https://github.com/ansible/ansible/issues/84117)
|
||||||
|
- Fix an issue where ``ansible_failed_task`` and ``ansible_failed_result`` were not available for hosts failed by ``any_errors_fatal`` (https://github.com/ansible/ansible/issues/84120)
|
@ -0,0 +1,16 @@
|
|||||||
|
- hosts: testhost,testhost2
|
||||||
|
gather_facts: false
|
||||||
|
any_errors_fatal: true
|
||||||
|
tasks:
|
||||||
|
- block:
|
||||||
|
- fail:
|
||||||
|
when: inventory_hostname == "testhost2"
|
||||||
|
rescue:
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- ansible_failed_result.failed
|
||||||
|
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- '"testhost" in play_hosts'
|
||||||
|
- '"testhost2" in play_hosts'
|
Loading…
Reference in New Issue