mirror of https://github.com/ansible/ansible.git
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.
16 lines
401 B
YAML
16 lines
401 B
YAML
1 year ago
|
- 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') }}"
|