24 lines
571 B
Bash
Executable File
24 lines
571 B
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# ara.sh
|
|
# Copyright (C) 2022 Vintage Salt <rehashedsalt@cock.li>
|
|
#
|
|
# Distributed under terms of the MIT license.
|
|
#
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
echo "Source this script, don't execute it"
|
|
echo " source \"${0}\""
|
|
exit 1
|
|
fi
|
|
ara="$(python3 -m ara.setup.callback_plugins)"
|
|
if [ -n "$ara" ]; then
|
|
export ANSIBLE_CALLBACK_PLUGINS="$ara"
|
|
export ARA_API_CLIENT="http"
|
|
export ARA_API_SERVER="https://ara.desu.ltd"
|
|
echo "Ansible configured to report to ara at $ARA_API_SERVER"
|
|
else
|
|
echo "Unable to find ara; is it installed?"
|
|
fi
|
|
unset ara
|