mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Add flag to template() so data is not converted to a datastructure
Fixes #11641
This commit is contained in:
parent
7a9916422a
commit
206ef27268
2 changed files with 12 additions and 10 deletions
|
@ -113,7 +113,7 @@ class ActionModule(ActionBase):
|
|||
|
||||
old_vars = self._templar._available_variables
|
||||
self._templar.set_available_variables(temp_vars)
|
||||
resultant = self._templar.template(template_data, preserve_trailing_newlines=True)
|
||||
resultant = self._templar.template(template_data, preserve_trailing_newlines=True, convert_data=False)
|
||||
self._templar.set_available_variables(old_vars)
|
||||
except Exception as e:
|
||||
return dict(failed=True, msg=type(e).__name__ + ": " + str(e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue