only run installer as root

This commit is contained in:
Philip (a-0) 2022-07-28 22:06:07 +02:00
parent 50b06b54cf
commit 82bd8874d2

View file

@ -1,3 +1,8 @@
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run as root!' >&2
exit 1
fi
pip3 install ansible
ansible-galaxy install -fr requirements.yml
ansible-playbook setup.yml