From 38ea61054f168299ce2018ccde77100ed86dc6f7 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Thu, 3 May 2012 15:52:02 -0400 Subject: [PATCH] if a playbook has no vars - still include the global vars --- lib/ansible/playbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index bba7e1f1bd5..9f15784f1f4 100644 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -135,7 +135,7 @@ class PlayBook(object): k, v = item.items()[0] vars[k] = v else: - vars = play['vars'] + vars.update(play['vars']) vars_prompt = play.get('vars_prompt', {}) if type(vars_prompt) != dict: