From a370261dce308226dd5762c79bbd6c0be2aa0fa9 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Mon, 26 Mar 2012 10:27:03 +0200 Subject: [PATCH] Playbook: create one task per include instead of per argument. --- lib/ansible/playbook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index 25808cb7826..a54dc3fee50 100755 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -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) # *****************************************************