2019-06-28 13:33:35 -05:00
|
|
|
export TRIPLEO_ANSIBLE_WORKPATH="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
|
|
|
|
export ANSIBLE_STDOUT_CALLBACK=debug
|
2019-07-18 14:00:05 -04:00
|
|
|
export ANSIBLE_ACTION_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy/config_template/action:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/action"
|
2019-06-28 13:33:35 -05:00
|
|
|
export ANSIBLE_CALLBACK_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/callback"
|
|
|
|
export ANSIBLE_FILTER_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/filter"
|
2019-07-18 14:00:05 -04:00
|
|
|
export ANSIBLE_LIBRARY="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy/config_template/library:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/modules"
|
2019-06-28 13:33:35 -05:00
|
|
|
export ANSIBLE_MODULE_UTILS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/module_utils"
|
2019-07-18 13:30:34 -05:00
|
|
|
export ANSIBLE_ROLES_PATH="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles"
|
2019-06-28 13:33:35 -05:00
|
|
|
export ANSIBLE_INVENTORY="${TRIPLEO_ANSIBLE_WORKPATH}/tests/hosts.ini"
|
|
|
|
export ANSIBLE_RETRY_FILES_ENABLED="0"
|
|
|
|
export ANSIBLE_LOAD_CALLBACK_PLUGINS="1"
|
2019-06-29 11:33:03 -04:00
|
|
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
2019-06-28 13:33:35 -05:00
|
|
|
|
|
|
|
function unset-ansible-test-env {
|
|
|
|
for i in $(env | grep ANSIBLE_ | awk -F'=' '{print $1}'); do
|
|
|
|
unset ${i}
|
|
|
|
done
|
|
|
|
unset TRIPLEO_ANSIBLE_WORKPATH
|
|
|
|
echo -e "Ansible test environment deactivated.\n"
|
|
|
|
unset -f unset-ansible-test-env
|
|
|
|
}
|
|
|
|
|
|
|
|
echo -e "Ansible test environment is now active"
|
|
|
|
echo -e "Run 'unset-ansible-test-env' to deactivate.\n"
|