diff --git a/raspi.sh b/raspi.sh index 426cbca..1488b0b 100644 --- a/raspi.sh +++ b/raspi.sh @@ -4,9 +4,9 @@ set -e set -x # install ansible -which pip || ( sudo apt-get update ; sudo apt-get -y dist-upgrade ; sudo apt-get -y install python3-pip ) -which git || ( sudo apt-get update ; sudo apt-get -y dist-upgrade ; sudo apt-get -y install git ) -which ansible || sudo pip install ansible +which pip >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install python3-pip ) +which git >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install git ) +which ansible >/dev/null 2>&1 || sudo pip install ansible # run ansible playbooks for playbook in debian.ansible.basics \