mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Add a way to add directories to just one type of loader
This commit is contained in:
parent
d2abfb9ff8
commit
5dd2ec2cae
2 changed files with 10 additions and 2 deletions
|
@ -68,7 +68,7 @@ class Inventory(object):
|
|||
host_list = [ h for h in host_list if h and h.strip() ]
|
||||
|
||||
else:
|
||||
utils.plugins.push_basedir(self.basedir())
|
||||
utils.plugins.vars_loader.add_directory(self.basedir())
|
||||
|
||||
if type(host_list) == list:
|
||||
all = Group('all')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue