From a4e829c874f746259cd9e1db07b67c7fcd98f411 Mon Sep 17 00:00:00 2001 From: Rodney Quillo Date: Fri, 19 Jul 2013 18:28:21 +0800 Subject: [PATCH] Allow roles to be interpolated from --extra-vars --- lib/ansible/playbook/play.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py index ba849eb640b..0806ba5ab88 100644 --- a/lib/ansible/playbook/play.py +++ b/lib/ansible/playbook/play.py @@ -149,7 +149,8 @@ class Play(object): # variables if the role was parameterized (i.e. given as a hash) has_dict = {} - for orig_path in roles: + for role_path in roles: + orig_path = template(self.basedir,role_path,self.playbook.extra_vars) if type(orig_path) == dict: # what, not a path?