blob: 62f60d6687c86f8451375baee5e8b3346dc205a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- hosts: localhost
gather_facts: false
tasks:
- debug:
msg: "{{ lookup('template', 'undefined_in_import.j2') }}"
ignore_errors: true
register: res
- assert:
that:
- "\"'undefined_variable' is undefined\" in res.msg"
|