mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Ensure we don't overwrite roles from include/import_role when loading the play (#47512)
* Ensure we don't overwrite roles from include/import_role when loading the play. Fixes #47454 * Add changelog fragment
This commit is contained in:
@@ -195,7 +195,12 @@ class Play(Base, Taggable, Become):
|
||||
roles = []
|
||||
for ri in role_includes:
|
||||
roles.append(Role.load(ri, play=self))
|
||||
return roles
|
||||
|
||||
return self._extend_value(
|
||||
self.roles,
|
||||
roles,
|
||||
prepend=True
|
||||
)
|
||||
|
||||
def _load_vars_prompt(self, attr, ds):
|
||||
new_ds = preprocess_vars(ds)
|
||||
|
||||
Reference in New Issue
Block a user