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:
Michael DeHaan 2012-05-02 00:28:19 -04:00
commit b300aac551
3 changed files with 12 additions and 6 deletions

View file

@ -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):