96b9fc6540
This basic role will provide an interface to TripleO so we can consume the ansible-config_template action plugin to generate configuration files. Change-Id: I4e28be86e28dd227a682362af56833fe97035a88 Signed-off-by: Kevin Carter <kecarter@redhat.com>
25 lines
1.4 KiB
Plaintext
25 lines
1.4 KiB
Plaintext
export TRIPLEO_ANSIBLE_WORKPATH="$(dirname $(readlink -f ${BASH_SOURCE[0]}))"
|
|
export ANSIBLE_STDOUT_CALLBACK=debug
|
|
export ANSIBLE_ACTION_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy/config_template/action:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/action"
|
|
export ANSIBLE_CALLBACK_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/callback"
|
|
export ANSIBLE_FILTER_PLUGINS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/filter"
|
|
export ANSIBLE_LIBRARY="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy/config_template/library:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/modules"
|
|
export ANSIBLE_MODULE_UTILS="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/ansible_plugins/module_utils"
|
|
export ANSIBLE_ROLES_PATH="${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles.galaxy:${TRIPLEO_ANSIBLE_WORKPATH}/tripleo_ansible/roles"
|
|
export ANSIBLE_INVENTORY="${TRIPLEO_ANSIBLE_WORKPATH}/tests/hosts.ini"
|
|
export ANSIBLE_RETRY_FILES_ENABLED="0"
|
|
export ANSIBLE_LOAD_CALLBACK_PLUGINS="1"
|
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
|
|
|
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"
|