mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3657 from zqad/devel
Fix playbook-local host_vars when running from .
This commit is contained in:
commit
83481b32cc
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class VarsModule(object):
|
||||||
""" main body of the plugin, does actual loading """
|
""" main body of the plugin, does actual loading """
|
||||||
|
|
||||||
inventory = self.inventory
|
inventory = self.inventory
|
||||||
self.pb_basedir = inventory.playbook_basedir()
|
self.pb_basedir = os.path.abspath(inventory.playbook_basedir())
|
||||||
|
|
||||||
# sort groups by depth so deepest groups can override the less deep ones
|
# sort groups by depth so deepest groups can override the less deep ones
|
||||||
groupz = sorted(inventory.groups_for_host(host.name), key=lambda g: g.depth)
|
groupz = sorted(inventory.groups_for_host(host.name), key=lambda g: g.depth)
|
||||||
|
|
Loading…
Reference in a new issue