13 lines
233 B
Bash
13 lines
233 B
Bash
|
#!/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
|