Debian Codegraph @

test/integration/targets/blocks/finalized_task.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 tasks:
4 - block:
5 - include_role:
6 name: '{{ item }}'
7 loop:
8 - fail
9 rescue:
10 - debug:
11 msg: "{{ ansible_failed_task.name }}"
12
13 - assert:
14 that:
15 - ansible_failed_task.name == "Fail"
16 - ansible_failed_task.action == "fail"
17 - ansible_failed_task.parent is not defined