Moved nextcloud pb to directory, added inventory, built structure for clean deployment with selectable features and wrote README.
This commit is contained in:
@@ -24,4 +24,6 @@
|
|||||||
- name: If neofetch is depricated install fastfetch
|
- name: If neofetch is depricated install fastfetch
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name: fastfetch
|
name: fastfetch
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
||||||
@@ -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
|
||||||
+3
-1
@@ -81,4 +81,6 @@
|
|||||||
- name: Restart Collabora CODE service
|
- name: Restart Collabora CODE service
|
||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: coolwsd
|
name: coolwsd
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
||||||
+3
-1
@@ -473,4 +473,6 @@
|
|||||||
- name: Restart Apache
|
- name: Restart Apache
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: apache2
|
name: apache2
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
||||||
|
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# This file was written by Ebbe Baß (umpi) - ebbe@ping-mee.de
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[collabora_code]
|
||||||
|
10.0.0.103
|
||||||
|
|
||||||
|
[collabora_code:vars]
|
||||||
|
ansible_user=it-admin
|
||||||
|
ansible_password=Start2026!
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[nextcloud]
|
||||||
|
10.0.0.101
|
||||||
|
10.0.0.102
|
||||||
|
|
||||||
|
[nextcloud:vars]
|
||||||
|
ansible_user=it-admin
|
||||||
|
ansible_password=Start2026!
|
||||||
Reference in New Issue
Block a user