From b4880b04fac33bd83cc4931fbf571c1529cc31c7 Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 1 Jul 2020 16:26:49 +0200 Subject: [PATCH] Add script to install ansible --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..455c0de --- /dev/null +++ b/install.sh @@ -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