From bac81be3f9382b0cc2df6a3a4a23b004f6725ae0 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Tue, 18 Jun 2013 13:31:08 -0400 Subject: [PATCH] Add undefined variables feature to example config file. --- examples/ansible.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ansible.cfg b/examples/ansible.cfg index 35af8efd38..a889176fe3 100644 --- a/examples/ansible.cfg +++ b/examples/ansible.cfg @@ -69,6 +69,10 @@ module_name = command , replacing {file}, {host} and {uid} and strftime codes with proper values. ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host} +# if set, Ansible will raise errors when attempting to redeference Jinja2 +# variables that are not set in templates or action lines. +# error_on_undefined_vars = True + # set plugin path directories here, seperate with colons action_plugins = /usr/share/ansible_plugins/action_plugins callback_plugins = /usr/share/ansible_plugins/callback_plugins