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.
16 lines
361 B
16 lines
361 B
---
|
|
|
|
- name: 'Variable in templates: a template can use a variable from task or playbook but not from an outter template'
|
|
gather_facts: no
|
|
hosts: localhost
|
|
vars:
|
|
input: 'OK'
|
|
tasks:
|
|
- block:
|
|
- debug:
|
|
var: output
|
|
- assert:
|
|
that:
|
|
- output == "OKKOOK"
|
|
vars:
|
|
output: "{{ lookup('template', 'template.j2') }}"
|
|
|