5c0b2c151c
This is a fix for a regression introduced by Perfy. Since then we mainly operate on host.name instead of the Host object. In a call to set_nonpersistent_facts where we set ansible_failed_task and ansible_failed_result variables we were still passing the object which led to those vars being undefined. Fixes #64789
16 lines
412 B
YAML
16 lines
412 B
YAML
- hosts: localhost
|
|
gather_facts: no
|
|
tasks:
|
|
- block:
|
|
- name: EXPECTED FAILURE
|
|
fail:
|
|
rescue:
|
|
- name: Assert that ansible_failed_task is defined
|
|
assert:
|
|
that:
|
|
- ansible_failed_task is defined
|
|
|
|
- name: Assert that ansible_failed_result is defined
|
|
assert:
|
|
that:
|
|
- ansible_failed_result is defined
|