Allow the group_vars and host_vars directories to be stored alongside the playbook as well as inventory.

This commit is contained in:
Michael DeHaan
2013-06-01 10:38:16 -04:00
parent 9736ec03a9
commit 6cd3ba5b06
3 changed files with 86 additions and 22 deletions

View File

@@ -113,6 +113,9 @@ 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: