mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
vars_loader should get the path to the inventory + vars_plugins
This commit is contained in:
parent
ad08995989
commit
f1eb195ff5
2 changed files with 4 additions and 2 deletions
|
@ -92,7 +92,7 @@ class Inventory(object):
|
|||
else:
|
||||
raise errors.AnsibleError("YAML inventory support is deprecated in 0.6 and removed in 0.7, see the migration script in examples/scripts in the git checkout")
|
||||
|
||||
utils.plugins.vars_loader.add_directory(self.basedir())
|
||||
utils.plugins.vars_loader.add_directory(self.basedir(), with_subdir=True)
|
||||
else:
|
||||
raise errors.AnsibleError("Unable to find an inventory file, specify one with -i ?")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue