„raspi.sh“ ändern

This commit is contained in:
olli 2022-11-17 12:34:52 +01:00
parent 3c2105ee3b
commit 09211b5a32

View File

@ -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 \