Debian Codegraph @

test/integration/targets/template_jinja2_non_native/macro_override.yml

raw
1 - hosts: localhost
2 gather_facts: false
3 vars:
4 output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
5 tasks:
6 - template:
7 src: macro_override.j2
8 dest: "{{ output_dir }}/macro_override.out"
9
10 - assert:
11 that:
12 - "'foobar' not in data"
13 - "'\"foo\" \"bar\"' in data"
14 vars:
15 data: "{{ lookup('file', output_dir ~ '/macro_override.out') }}"