mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 18:50:21 -07:00
Merge pull request #5427 from bcoca/template_docs2
added more usefull example for jinja2 overrides
This commit is contained in:
commit
1260225fc9
1 changed files with 5 additions and 2 deletions
|
@ -48,8 +48,11 @@ options:
|
||||||
required: false
|
required: false
|
||||||
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).
|
||||||
- 'You can override jinja2 settings by adding a special header to template file.
|
|
||||||
i.e. C(#jinja2: trim_blocks: False)'
|
- "Also, you can override jinja2 settings by adding a special header to template file.
|
||||||
|
i.e. C(#jinja2:variable_start_string:'[%' , variable_end_string:'%]')
|
||||||
|
which changes the variable interpolation markers to [% var %] instead of {{ var }}."
|
||||||
|
|
||||||
requirements: []
|
requirements: []
|
||||||
author: Michael DeHaan
|
author: Michael DeHaan
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue