Debian Codegraph @

test/integration/targets/blocks/unsafe_failed_task.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 vars:
4 data: {}
5 tasks:
6 - block:
7 - name: template error
8 debug:
9 msg: "{{ data.value }}"
10 rescue:
11 - debug:
12 msg: "{{ ansible_failed_task.action }}"
13
14 - assert:
15 that:
16 - ansible_failed_task.name == "template error"
17 - ansible_failed_task.action == "debug"