Add script to install ansible

This commit is contained in:
pgrondek 2020-07-01 16:26:49 +02:00
parent e37bd7c078
commit b4880b04fa

12
install.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
if [[ "$EUID" -ne 0 ]]; then
echo "You need to be root"
sudo $0 $@
exit
fi
apt update
apt install software-properties-common
apt-add-repository --yes --update ppa:ansible/ansible
apt install ansible