restored incorrectly removed docs, jinja2 override
This commit is contained in:
parent
320aea77c6
commit
1f6c3766b0
1 changed files with 7 additions and 1 deletions
|
@ -63,7 +63,13 @@ options:
|
||||||
default: "yes"
|
default: "yes"
|
||||||
notes:
|
notes:
|
||||||
- "Since Ansible version 0.9, templates are loaded with C(trim_blocks=True)."
|
- "Since Ansible version 0.9, templates are loaded with C(trim_blocks=True)."
|
||||||
requirements: []
|
- "Also, you can override jinja2 settings by adding a special header to template file.
|
||||||
|
i.e. C(#jinja2:variable_start_string:'[%' , variable_end_string:'%]', trim_blocks: False)
|
||||||
|
which changes the variable interpolation markers to [% var %] instead of {{ var }}.
|
||||||
|
This is the best way to prevent evaluation of things that look like, but should not be Jinja2.
|
||||||
|
raw/endraw in Jinja2 will not work as you expect because templates in Ansible are recursively evaluated."
|
||||||
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Ansible Core Team
|
- Ansible Core Team
|
||||||
- Michael DeHaan
|
- Michael DeHaan
|
||||||
|
|
Loading…
Reference in a new issue