„raspi.sh“ ändern

This commit is contained in:
olli 2022-11-17 13:42:01 +01:00
parent 7fc9204d81
commit 2008ed4790

View File

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
sudo apt-get update
sudo apt-get -yy dist-upgrade
# install ansible # install ansible
which pip >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install python3-pip ) which pip >/dev/null 2>&1 || ( sudo apt-get -yy install python3-pip )
which git >/dev/null 2>&1 || ( sudo apt-get update ; sudo apt-get -y install git ) which git >/dev/null 2>&1 || ( sudo apt-get -yy install git )
which ansible >/dev/null 2>&1 || sudo pip install ansible which ansible >/dev/null 2>&1 || sudo pip install ansible
# run ansible playbooks # run ansible playbooks