„build-debian-env.sh“ hinzufügen

This commit is contained in:
olli 2023-04-28 15:15:53 +02:00
parent 710513a284
commit cf386b2716

19
build-debian-env.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash -xe
# install ansible
sudo apt-get -y install python3-pip git
sudo pip install ansible
cd /root
rm -rf $(hostname -s)-git
mkdir $(hostname -s)-git
cd $(hostname -s)-git
# run ansible playbooks
for playbook in \
debian.ansible.basics \
debian.ansible.autoupdate
do
git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git
sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml
done