You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/template/undefined_in_import.yml

12 lines
267 B
YAML

- 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"