Debian Codegraph @

test/integration/targets/template/undefined_in_import.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 tasks:
4 - raw: echo {{ lookup('template', 'undefined_in_import.j2') }}
5 ignore_errors: true
6 register: res
7
8 - assert:
9 that:
10 - res.failed
11 - res.msg is contains("'undefined_variable' is undefined")