summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichel Blanc <mb@mbnet.fr>2013-02-13 10:10:16 +0100
committerMichael DeHaan <michael.dehaan@gmail.com>2013-02-16 13:32:48 -0500
commit1c22f2146e7cfb1c7f09243df7450de68c9a9bae (patch)
tree1172a27fe4b138c54fc5bdcee942ec3bf15104e9 /examples
parent83ce1b2dc5b69feb8b9b31f80e806e7fe9e1d1d9 (diff)
downloadansible-1c22f2146e7cfb1c7f09243df7450de68c9a9bae.tar.gz
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
Diffstat (limited to 'examples')
-rw-r--r--examples/ansible.cfg7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/ansible.cfg b/examples/ansible.cfg
index ab8dd20c4f..6c8713433e 100644
--- a/examples/ansible.cfg
+++ b/examples/ansible.cfg
@@ -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