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