mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 22:00:22 -07:00
Adds configurable jinja2 extension loading
Jinja extensions adds features to the jinja2 templating engine. This patch allows module loading for the templating engine vian an ansible.cfg configuration key (jinja_extensions). The default behaviour doesn't change (no module loading). Requested modules can be added coma separated in ansible.cfg Adds whitespace handling in jinja_extension config Added whitespace handling in jinja_extension configuration directive, so things stay safe if user adds spaces around comas in the directives list. Adds config example for jinja_extensions Added config example with multiple extentions for jinja_extensions
This commit is contained in:
parent
83ce1b2dc5
commit
1c22f2146e
3 changed files with 22 additions and 1 deletions
|
@ -89,6 +89,13 @@ sudo_exe=sudo
|
|||
#
|
||||
# hash_behaviour=replace
|
||||
|
||||
# if you need to use jinja2 extensions, you can list them here
|
||||
# use a coma to separate extensions, e.g. :
|
||||
# jinja_extensions=jinja2.ext.do,jinja2.ext.i18n
|
||||
# no extensions are loaded by default
|
||||
|
||||
#jinja_extensions=
|
||||
|
||||
# if set, always use this private key file for authentication, same as if passing
|
||||
# --private-key to ansible or ansible-playbook
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue