add environment variables. Assuming the current directory is sonic-mgmt/tests: export ANSIBLE_CONFIG=../ansible export ANSIBLE_LIBRARY=../ansible Ref: sonic-net/sonic-mgmt#2118