mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
Move inventory.set_playbook_basedir from ansible-playbook to playbook constructor
This commit is contained in:
parent
cc28fd891b
commit
f8ea93c732
3 changed files with 6 additions and 4 deletions
|
@ -57,7 +57,8 @@ class Inventory(object):
|
|||
self._groups_list = {}
|
||||
self._pattern_cache = {}
|
||||
|
||||
# to be set by calling set_playbook_basedir by ansible-playbook
|
||||
self._inventory_basedir = inventory.basedir()
|
||||
# to be set by calling set_playbook_basedir by playbook code
|
||||
self._playbook_basedir = None
|
||||
|
||||
# the inventory object holds a list of groups
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue