mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-03 23:14:02 -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
|
@ -158,9 +158,6 @@ def main(args):
|
|||
# run all playbooks specified on the command line
|
||||
for playbook in args:
|
||||
|
||||
# let inventory know which playbooks are using so it can know the basedirs
|
||||
inventory.set_playbook_basedir(os.path.dirname(playbook))
|
||||
|
||||
stats = callbacks.AggregateStats()
|
||||
playbook_cb = callbacks.PlaybookCallbacks(verbose=utils.VERBOSITY)
|
||||
if options.step:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue