Move get-ansible-role-requirements to scripts

This playbook is the default clone method for roles in both testing
and production. It originally started as a tests-only role fetcher,
so it belonged in tests then, but now that it is used by default
it should reside in scripts.

Also remove an unnecessary reference to the test-inventory.ini,
since the contents of test-inventory.ini are the contents of the
default base ansible inventory if none is provided (meaning
test-inventory.ini is generally redundant.)

Change-Id: I47628f678098b283526e4fc6204520d85046a512
This commit is contained in:
Logan V 2018-07-12 09:57:38 -05:00
parent a9e6d6536d
commit df5f9738df
2 changed files with 1 additions and 2 deletions

View File

@ -209,9 +209,8 @@ if [ -f "${ANSIBLE_ROLE_FILE}" ]; then
export ANSIBLE_STRATEGY_PLUGINS="/dev/null"
export ANSIBLE_CONFIG="none-ansible.cfg"
pushd tests
pushd scripts
/opt/ansible-runtime/bin/ansible-playbook get-ansible-role-requirements.yml \
-i ${OSA_CLONE_DIR}/tests/test-inventory.ini \
-e role_file="${ANSIBLE_ROLE_FILE}"
popd