Merge pull request #73 from jhoekx/include-arguments

Playbook: create one task per include instead of per argument.
This commit is contained in:
Michael DeHaan 2012-03-26 11:31:52 -07:00
commit 3b950086c7

View file

@ -105,10 +105,10 @@ class PlayBook(object):
if x.find("=") != -1:
(k,v) = x.split("=")
inject_vars[k] = v
included = utils.template_from_file(path, inject_vars)
included = utils.parse_yaml(included)
for x in included:
new_tasks.append(x)
included = utils.template_from_file(path, inject_vars)
included = utils.parse_yaml(included)
for x in included:
new_tasks.append(x)
# *****************************************************