mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge branch 'role_path_var' of https://github.com/sergevanginderachter/ansible into sergevanginderachter-role_path_var
This commit is contained in:
commit
ea5db1818d
1 changed files with 3 additions and 1 deletions
|
@ -373,10 +373,12 @@ class Play(object):
|
||||||
|
|
||||||
roles = self._build_role_dependencies(roles, [], self.vars)
|
roles = self._build_role_dependencies(roles, [], self.vars)
|
||||||
|
|
||||||
# give each role an uuid
|
# give each role an uuid and
|
||||||
|
# make role_path available as variable to the task
|
||||||
for idx, val in enumerate(roles):
|
for idx, val in enumerate(roles):
|
||||||
this_uuid = str(uuid.uuid4())
|
this_uuid = str(uuid.uuid4())
|
||||||
roles[idx][-2]['role_uuid'] = this_uuid
|
roles[idx][-2]['role_uuid'] = this_uuid
|
||||||
|
roles[idx][-2]['role_path'] = roles[idx][1]
|
||||||
|
|
||||||
role_names = []
|
role_names = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue