From cf386b2716cfaff3d15728f185bfbabc54113927 Mon Sep 17 00:00:00 2001 From: olli Date: Fri, 28 Apr 2023 15:15:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ebuild-debian-env.sh=E2=80=9C=20hinzuf?= =?UTF-8?q?=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-debian-env.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build-debian-env.sh diff --git a/build-debian-env.sh b/build-debian-env.sh new file mode 100644 index 0000000..54743a0 --- /dev/null +++ b/build-debian-env.sh @@ -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