Handle deprecation of ANSIBLE_COLLECTIONS_PATHS

This has now become ANSIBLE_COLLECTIONS_PATH so we should support both
for the period we want to transition from ansible 2.9 to 2.10.
See https://github.com/ansible-community/molecule/issues/2756

Change-Id: I5ab53f6d79d1afb6882f5e48b6d594baa85554b9
This commit is contained in:
Jonathan Rosser 2020-09-22 10:37:29 +01:00
parent 855a52ecbf
commit 6ca149ebcb

View File

@ -24,6 +24,7 @@ mkdir -p "$(dirname ${ANSIBLE_LOG_PATH})" || unset ANSIBLE_LOG_PATH
export ANSIBLE_ROLES_PATH="${ANSIBLE_ROLES_PATH:-/etc/ansible/roles:OSA_PLAYBOOK_PATH/roles:/etc/ansible/roles/ceph-ansible/roles}"
export ANSIBLE_COLLECTIONS_PATHS="${ANSIBLE_COLLECTIONS_PATHS:-/etc/ansible}"
export ANSIBLE_COLLECTIONS_PATH="${ANSIBLE_COLLECTIONS_PATH:-/etc/ansible}"
export ANSIBLE_LIBRARY="${ANSIBLE_LIBRARY:-/etc/ansible/roles/config_template/library:/etc/ansible/roles/plugins/library:/etc/ansible/roles/ceph-ansible/library}"
export ANSIBLE_LOOKUP_PLUGINS="${ANSIBLE_LOOKUP_PLUGINS:-/etc/ansible/roles/plugins/lookup}"