diff --git a/raspi.sh b/raspi.sh index 64a6ffc..89bc16b 100644 --- a/raspi.sh +++ b/raspi.sh @@ -3,17 +3,10 @@ set -e set -x -# systemupdate -sudo apt-get update -sudo apt-get -y dist-upgrade - # install ansible -sudo apt-get -y install python3-pip git -sudo pip install ansible - -# install mscore fonts -echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections -sudo apt-get -y install ttf-mscorefonts-installer +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 # run ansible playbooks for playbook in debian.ansible.basics \