Debian Codegraph @

test/integration/targets/template_jinja2_non_native/46169.yml

raw
1 - hosts: localhost
2 gather_facts: no
3 tasks:
4 - set_fact:
5 output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
6
7 - template:
8 src: templates/46169.json.j2
9 dest: "{{ output_dir }}/result.json"
10
11 - command: "diff templates/46169.json.j2 {{ output_dir }}/result.json"
12 register: diff_result
13
14 - assert:
15 that:
16 - diff_result.stdout == ""
17
18 - block:
19 - set_fact:
20 non_native_lookup: "{{ lookup('template', 'templates/46169.json.j2') }}"
21
22 - assert:
23 that:
24 - non_native_lookup | type_debug == 'str'