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_jinja2_non_native/macro_override.yml

16 lines
398 B
YAML

- hosts: localhost
gather_facts: false
vars:
output_dir: "{{ lookup('env', 'OUTPUT_DIR') }}"
tasks:
- template:
src: macro_override.j2
dest: "{{ output_dir }}/macro_override.out"
- assert:
that:
- "'foobar' not in data"
- "'\"foo\" \"bar\"' in data"
vars:
data: "{{ lookup('file', output_dir ~ '/macro_override.out') }}"