mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Allow roles to be interpolated from --extra-vars
This commit is contained in:
@@ -149,7 +149,8 @@ class Play(object):
|
|||||||
# variables if the role was parameterized (i.e. given as a hash)
|
# variables if the role was parameterized (i.e. given as a hash)
|
||||||
has_dict = {}
|
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:
|
if type(orig_path) == dict:
|
||||||
# what, not a path?
|
# what, not a path?
|
||||||
|
|||||||
Reference in New Issue
Block a user