Use convert_bare instead of string formatting for raw vars in debug action plugin

This commit is contained in:
James Cammarata 2014-10-22 10:30:04 -05:00
parent 707474a43a
commit 4c47c2273a

View file

@ -51,7 +51,7 @@ class ActionModule(object):
else:
result = dict(msg=args['msg'])
elif 'var' in args and not utils.LOOKUP_REGEX.search(args['var']):
results = template.template(self.basedir, "{{ %s }}" % args['var'], inject)
results = template.template(self.basedir, args['var'], inject, convert_bare=True)
result[args['var']] = results
# force flag to make debug output module always verbose