---
- set_fact:
output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
- template:
src: test
dest: "{{ output_dir }}/templated_test"
register: custom_template_result
- debug:
msg: "{{ custom_template_result }}"
- assert:
that:
- custom_template_result.changed