---- 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


# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de