You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
336 B
14 lines
336 B
|
|
- name: The value of a variable can be computed from a Jinja template, stored in a file
|
|
gather_facts: no
|
|
hosts: localhost
|
|
vars:
|
|
foo: 'bar'
|
|
myname: 'Nicolas'
|
|
output: '{{ lookup(''template'', ''output.j2'') }}'
|
|
tasks:
|
|
- debug:
|
|
var: 'output'
|
|
- assert:
|
|
that:
|
|
- output == 'Hello Nicolas, foo = bar'
|