mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fixing up some issues with plugin loading
This commit is contained in:
parent
2a5fbd8570
commit
927072546b
4 changed files with 12 additions and 6 deletions
|
@ -37,7 +37,7 @@ from ansible.playbook.helpers import load_list_of_blocks
|
|||
from ansible.playbook.role.include import RoleInclude
|
||||
from ansible.playbook.role.metadata import RoleMetadata
|
||||
from ansible.playbook.taggable import Taggable
|
||||
from ansible.plugins import get_all_plugin_loaders
|
||||
from ansible.plugins import get_all_plugin_loaders, push_basedir
|
||||
from ansible.utils.vars import combine_vars
|
||||
|
||||
|
||||
|
@ -136,6 +136,8 @@ class Role(Base, Become, Conditional, Taggable):
|
|||
self._variable_manager = role_include.get_variable_manager()
|
||||
self._loader = role_include.get_loader()
|
||||
|
||||
push_basedir(self._role_path)
|
||||
|
||||
if parent_role:
|
||||
self.add_parent(parent_role)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue