mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Use convert_bare instead of string formatting for raw vars in debug action plugin
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user