From 109250c8ecf1ea9813bcf0ac96715659e5bd8375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 14 Jul 2026 12:53:23 +0200 Subject: [PATCH] Moved nextcloud pb to directory, added inventory, built structure for clean deployment with selectable features and wrote README. --- .../linux/ubuntu-server/deploy_basics.yml | 4 ++- .../nextcloud_full_deployment/README.txt | 32 +++++++++++++++++++ .../deploy_collabora_code.yml | 4 ++- .../deploy_hardened_nextcloud.yml | 4 ++- .../deployment_start.yml | 4 +++ .../inventory/collabora_code | 6 ++++ .../inventory/nextcloud | 7 ++++ 7 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 playbooks/linux/ubuntu-server/nextcloud_full_deployment/README.txt rename playbooks/linux/ubuntu-server/{ => nextcloud_full_deployment}/deploy_collabora_code.yml (97%) rename playbooks/linux/ubuntu-server/{ => nextcloud_full_deployment}/deploy_hardened_nextcloud.yml (99%) create mode 100644 playbooks/linux/ubuntu-server/nextcloud_full_deployment/deployment_start.yml create mode 100644 playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/collabora_code create mode 100644 playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/nextcloud diff --git a/playbooks/linux/ubuntu-server/deploy_basics.yml b/playbooks/linux/ubuntu-server/deploy_basics.yml index 4a84157..69ba32d 100644 --- a/playbooks/linux/ubuntu-server/deploy_basics.yml +++ b/playbooks/linux/ubuntu-server/deploy_basics.yml @@ -24,4 +24,6 @@ - name: If neofetch is depricated install fastfetch ansible.builtin.apt: name: fastfetch - state: present \ No newline at end of file + state: present + +# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de \ No newline at end of file diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/README.txt b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/README.txt new file mode 100644 index 0000000..e41f96d --- /dev/null +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/README.txt @@ -0,0 +1,32 @@ +---- Welcome ---- +This is a full-stack Nextcloud deployment combined with a hardnening and a Collabora CODE server setup and integration into Nextcloud. + +The minimum setup of this deployment would be a single server (this context wasn't tested yet). +The optimal setup would be two servers, a server for the Nextcloud and a server for the CODE server. + +The current playbook stack is made for a theoratical infinite amount of Nextcloud instance setups (not load balanced or anything in that direction) and a single server for Collabora CODE. + +Currently this setup assumes that the server for both Nextcloud and Collabora CODE is Ubuntu 20.04 server. This can be changed but hasn't been tested yet and required some tinkering (e.g. in the deploy_collabora_code.yml file for the APT sources). + +---- Quickstart ---- + +First of all specify your hosts in the inventory folder. +Please also add the username and password as host vars in the two inventory files. + + /nextcloud_full_deployment + | - /inventory + | - nextcloud + | - collabora_code + +After that is done go through the playbooks and change all values that have the comment "#EDIT based on your needs" according to your needs. + + /nextcloud_full_deployment + | - deploy_collabora_code.yml + | - deploy_hardened_nextcloud.yml + | - deployment_start.yml + +When you are done with preparing your deployment, you can just run the following command: +ansible-playbook deployment_start.yml -i inventory --ask-become-pass + +Optionally with debugging +ansible-playbook deployment_start.yml -i inventory --ask-become-pass -vv diff --git a/playbooks/linux/ubuntu-server/deploy_collabora_code.yml b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml similarity index 97% rename from playbooks/linux/ubuntu-server/deploy_collabora_code.yml rename to playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml index 6444b98..46494eb 100644 --- a/playbooks/linux/ubuntu-server/deploy_collabora_code.yml +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_collabora_code.yml @@ -81,4 +81,6 @@ - name: Restart Collabora CODE service ansible.builtin.service: name: coolwsd - state: restarted \ No newline at end of file + state: restarted + +# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de \ No newline at end of file diff --git a/playbooks/linux/ubuntu-server/deploy_hardened_nextcloud.yml b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_hardened_nextcloud.yml similarity index 99% rename from playbooks/linux/ubuntu-server/deploy_hardened_nextcloud.yml rename to playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_hardened_nextcloud.yml index e3f4e0e..b715027 100644 --- a/playbooks/linux/ubuntu-server/deploy_hardened_nextcloud.yml +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deploy_hardened_nextcloud.yml @@ -473,4 +473,6 @@ - name: Restart Apache ansible.builtin.systemd: name: apache2 - state: restarted \ No newline at end of file + state: restarted + +# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de \ No newline at end of file diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deployment_start.yml b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deployment_start.yml new file mode 100644 index 0000000..6a63f24 --- /dev/null +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/deployment_start.yml @@ -0,0 +1,4 @@ + + + +# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de \ No newline at end of file diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/collabora_code b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/collabora_code new file mode 100644 index 0000000..e88d335 --- /dev/null +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/collabora_code @@ -0,0 +1,6 @@ +[collabora_code] +10.0.0.103 + +[collabora_code:vars] +ansible_user=it-admin +ansible_password=Start2026! \ No newline at end of file diff --git a/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/nextcloud b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/nextcloud new file mode 100644 index 0000000..92759d8 --- /dev/null +++ b/playbooks/linux/ubuntu-server/nextcloud_full_deployment/inventory/nextcloud @@ -0,0 +1,7 @@ +[nextcloud] +10.0.0.101 +10.0.0.102 + +[nextcloud:vars] +ansible_user=it-admin +ansible_password=Start2026! \ No newline at end of file