From d94dcf3dded1a1a24057085d86569229810171e6 Mon Sep 17 00:00:00 2001 From: olli Date: Mon, 21 Aug 2023 12:08:19 +0200 Subject: [PATCH] =?UTF-8?q?nextcloud-install.sh=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nextcloud-install.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nextcloud-install.sh diff --git a/nextcloud-install.sh b/nextcloud-install.sh new file mode 100644 index 0000000..1284b86 --- /dev/null +++ b/nextcloud-install.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -e + +sudo apt-get -y install python3-pip git +sudo pip install ansible + +cd +rm -rf $(hostname -s)-git +mkdir $(hostname -s)-git +cd $(hostname -s)-git + +for playbook in \ + debian.ansible.basics \ + debian.ansible.runchecks \ + debian.ansible.backup \ + debian.ansible.autoupdate \ + debian.ansible.dedyn.client \ + debian.ansible.docker \ + debian.ansible.traefik.server \ + debian.ansible.firewall \ + debian.ansible.nextcloud.server +do + git clone https://gitea.ds9.dedyn.io/olli/${playbook}.git + sudo ansible-playbook --connection=local --inventory $(hostname), --limit $(hostname) ${playbook}/*.yml +done \ No newline at end of file