mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Merge pull request #488 from dhozac/jinja2-env
Create a Jinja2 environment allowing includes
This commit is contained in:
commit
bd653c8f3c
5 changed files with 47 additions and 51 deletions
|
@ -588,8 +588,7 @@ class Runner(object):
|
|||
|
||||
# template the source data locally
|
||||
try:
|
||||
resultant = utils.template_from_file(utils.path_dwim(self.basedir, source),
|
||||
inject, self.setup_cache, no_engine=False)
|
||||
resultant = utils.template_from_file(self.basedir, source, inject, self.setup_cache)
|
||||
except Exception, e:
|
||||
result = dict(failed=True, msg=str(e))
|
||||
return ReturnData(host=conn.host, comm_ok=False, result=result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue