raspi.sh aktualisiert

This commit is contained in:
olli 2024-04-02 14:32:24 +02:00
parent c92f0fc2b7
commit 51d77c7db8

View File

@ -2,30 +2,24 @@
#sudo apt-get update
#sudo apt-get -yy dist-upgrade
cd /root
rm -f install.sh
wget https://gitea.ds9.dedyn.io/olli/debian.ansible.basics/raw/branch/main/install.sh
# install ansible
#export GITSRVURL="ssh://git@gitea.ds9.dedyn.io:333/olli"
which git >/dev/null 2>&1 || ( sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install git )
which ansible >/dev/null 2>&1 || ( sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install ansible ; sudo pip3 install ansible ; sudo DEBIAN_FRONTEND=noninteractive apt-get -yy remove --purge ansible)
sudo DEBIAN_FRONTEND=noninteractive apt-get -yy install python3-yaml
export PLAYBOOKS="
debian.ansible.basics
gtc-rename
gtc-crypt
gtc-x11vnc
debian.ansible.firewall
debian.ansible.flatpak
debian.ansible.kodi
debian.ansible.dedyn.client
"
bash install.sh
ansible-galaxy collection install community.general
# run ansible playbooks
for playbook in debian.ansible.basics \
gtc-rename \
gtc-crypt \
gtc-x11vnc \
debian.ansible.firewall \
debian.ansible.flatpak \
debian.ansible.kodi \
debian.ansible.dedyn.client
do
sudo rm -rf ${playbook}
git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
sudo rm -rf ${playbook}
done
echo '#!/bin/bash
gnome-terminal --hide-menubar --title=share.sh --maximize -- ~/share.sh