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:
parent
a9e6d6536d
commit
df5f9738df
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user