fix collection adjacent loading with --playbook-dir (#56194)

* added inventory adjacent test
This commit is contained in:
Brian Coca
2019-05-22 11:06:54 -04:00
committed by Sam Doran
parent 4f89c1d508
commit 69b2d7e0f3
3 changed files with 11 additions and 3 deletions

View File

@@ -32,3 +32,7 @@ fi
# run test playbook
ansible-playbook -i "${INVENTORY_PATH}" -i ./a.statichost.yml -v "${TEST_PLAYBOOK}"
# test adjacent with --playbook-dir
export ANSIBLE_COLLECTIONS_PATHS=''
ANSIBLE_INVENTORY_ANY_UNPARSED_IS_FAILED=1 ansible-inventory -i a.statichost.yml --list --export --playbook-dir=. -v "$@"