Debian Codegraph @

test/integration/targets/template/undefined_var_info.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 vars:
4 foo: []
5 bar: "{{ foo[0] }}"
6 tasks:
7 - raw: echo {{ bar }}
8 register: result
9 ignore_errors: yes
10
11 - assert:
12 that:
13 - result is failed
14 #- '"foo[0]" in result.msg'
15 - '"object has no element 0" in result.msg'