diff options
author | Michael DeHaan <michael@ansibleworks.com> | 2013-06-01 10:38:16 -0400 |
---|---|---|
committer | Michael DeHaan <michael@ansibleworks.com> | 2013-06-01 10:38:16 -0400 |
commit | 6cd3ba5b06578deda4aca19e77debb59d1d7df49 (patch) | |
tree | a8d2c7aa2eb2201eb2f31f4fcf4b13218ed1e77e /bin | |
parent | 9736ec03a94e8d6811a9fd02444c1defa55fdb2a (diff) | |
download | ansible-6cd3ba5b06578deda4aca19e77debb59d1d7df49.tar.gz |
Allow the group_vars and host_vars directories to be stored alongside the playbook as well as inventory.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-playbook | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook index f728a278d4..b674000bf2 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -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: |