minor fixes to template docs

pull/21059/head
Brian Coca 8 years ago
parent d7bf3749b7
commit 770fb03157

@ -29,15 +29,14 @@ description:
(U(http://jinja.pocoo.org/docs/)) - documentation on the template (U(http://jinja.pocoo.org/docs/)) - documentation on the template
formatting can be found in the Template Designer Documentation formatting can be found in the Template Designer Documentation
(U(http://jinja.pocoo.org/docs/templates/)). (U(http://jinja.pocoo.org/docs/templates/)).
- "Six additional variables can be used in templates: C(ansible_managed) - "Six additional variables can be used in templates:
(configurable via the C(defaults) section of C(ansible.cfg)) contains a string C(ansible_managed) (configurable via the C(defaults) section of C(ansible.cfg)) contains a string which can be used to
which can be used to describe the template name, host, modification time of the describe the template name, host, modification time of the template file and the owner uid.
template file and the owner uid, C(template_host) contains the node name of C(template_host) contains the node name of the template's machine.
the template's machine, C(template_uid) the owner, C(template_path) the C(template_uid) the numeric user id of the owner.
absolute path of the template, C(template_fullpath) is the absolute path of the C(template_path) the path of the template.
template, and C(template_run_date) is the date that the template was rendered. Note that including C(template_fullpath) is the absolute path of the template.
a string that uses a date in the template will result in the template being marked 'changed' C(template_run_date) is the date that the template was rendered."
each time."
options: options:
src: src:
description: description:
@ -63,6 +62,7 @@ options:
choices: [ "yes", "no" ] choices: [ "yes", "no" ]
default: "yes" default: "yes"
notes: notes:
- Including a string that uses a date in the template will result in the template being marked 'changed' each time
- "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)."
- "Also, you can override jinja2 settings by adding a special header to template file. - "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) i.e. C(#jinja2:variable_start_string:'[%' , variable_end_string:'%]', trim_blocks: False)

Loading…
Cancel
Save