From e095830fd8d2efc0d6e6ca9d0708dd946978a993 Mon Sep 17 00:00:00 2001 From: Zolfa Date: Sat, 6 Jun 2020 00:16:20 +0200 Subject: [PATCH] playbook nextcloud with onlyoffice and backup --- nextcloud.yaml | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/nextcloud.yaml b/nextcloud.yaml index f227014..87ddfa7 100644 --- a/nextcloud.yaml +++ b/nextcloud.yaml @@ -1,15 +1,48 @@ --- - import_playbook: 'prepare_lxc_guest.yaml' vars: - host: 'cloud' - vm_size: '4G' + host: 'nextcloud' + vm_size: '20G' + unprivileged: true -- hosts: 'cloud' +- hosts: 'nextcloud' + vars: + reverse_proxy_proxy_protocol: false + nginx_proxy_protocol: false + nginx_tls_1_2: true roles: - role: 'dns_record' - role: 'reverse_proxy' + reverse_proxy_www_redir: false + reverse_proxy_site_fqdn: + - 'cloud.lilik.it' + - 'cloud.sestograd.org' + - 'docs.sestograd.org' - role: 'nextcloud' + nextcloud_nginx_fqdn: 'cloud.lilik.it' + nextcloud_nginx_alternate_fqdns: + - 'cloud.sestograd.org' + - role: 'onlyoffice' + onlyoffice_nginx_fqdn: 'docs.sestograd.org' + tags: onlyoffice - role: 'monitoring-agent' + - role: 'borgrepo' + borgrepo_repos: + core: + folders: + nextcloud_data: + path: '/opt/nextcloud_data' + pgsql_dbs: + nextcloud_db: + dbname: 'nextcloud' + extras: + folders: + onlyoffice_data: + path: '/var/lib/onlyoffice/documentserver' + pgsql_dbs: + onlyoffice_db: + dbname: 'onlyoffice' + tags: borg - hosts: 'monitoring_hosts' roles: