Merge pull request #3591 from cocoy/fix_3567

Allow roles to be interpolated from --extra-vars
This commit is contained in:
Michael DeHaan 2013-07-19 06:04:59 -07:00
commit 5eea4b56fa

View file

@ -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?