mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-12 03:14:24 -07:00
Include files are no longer to be considered Jinja2 templates, but individual THINGS
in included files can still be templated just like top level playbooks. Resolves some issues about statements being evaluated before facts were available
This commit is contained in:
parent
adca320490
commit
b300aac551
3 changed files with 12 additions and 6 deletions
|
@ -165,7 +165,7 @@ class PlayBook(object):
|
|||
include_vars[k] = v
|
||||
inject_vars = play_vars.copy()
|
||||
inject_vars.update(include_vars)
|
||||
included = utils.template_from_file(path, inject_vars, SETUP_CACHE)
|
||||
included = utils.template_from_file(path, inject_vars, SETUP_CACHE, no_engine=True)
|
||||
included = utils.parse_yaml(included)
|
||||
for x in included:
|
||||
if len(include_vars):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue