mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Merge pull request #346 from jhoekx/improve-varreplace
Support nested variables in varReplace
This commit is contained in:
commit
cb6f0f4284
3 changed files with 173 additions and 5 deletions
|
@ -545,7 +545,7 @@ class Runner(object):
|
|||
source_data = codecs.open(utils.path_dwim(self.basedir, source), encoding="utf8").read()
|
||||
resultant = ''
|
||||
try:
|
||||
resultant = utils.template(source_data, inject, self.setup_cache)
|
||||
resultant = utils.template(source_data, inject, self.setup_cache, no_engine=False)
|
||||
except Exception, e:
|
||||
return (host, False, dict(failed=True, msg=str(e)), '')
|
||||
xfered = self._transfer_str(conn, tmp, 'source', resultant)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue