Playbook refactoring -- work in progress.

This commit is contained in:
Michael DeHaan 2012-05-26 00:37:34 -04:00
parent cf9ddf3a30
commit b9b53d1941
5 changed files with 306 additions and 341 deletions

View file

@ -254,7 +254,7 @@ def varReplace(raw, vars):
return ''.join(done)
def template(text, vars, setup_cache, no_engine=True):
def template(text, vars, setup_cache=None, no_engine=True):
''' run a text buffer through the templating engine '''
vars = vars.copy()
vars['hostvars'] = setup_cache