2020-11-12 15:07:15 +01:00
|
|
|
---
|
|
|
|
dependencies:
|
|
|
|
|
|
|
|
# install nodejs
|
2020-11-21 23:42:08 +01:00
|
|
|
- role: stable/nodejs
|
2020-11-12 15:07:15 +01:00
|
|
|
|
|
|
|
# install postgres
|
|
|
|
# and create an gancio user and db
|
2020-11-21 23:42:08 +01:00
|
|
|
- role: stable/postgresql
|
2020-11-12 15:07:15 +01:00
|
|
|
vars:
|
|
|
|
username: gancio
|
|
|
|
password: "{{ database_password }}"
|
|
|
|
database: gancio
|
2021-01-06 12:16:12 +01:00
|
|
|
|
|
|
|
# install certbot, nginx and configure it as reverse proxy
|
|
|
|
- role: stable/nginx
|
|
|
|
when: with_nginx | bool
|
|
|
|
vars:
|
|
|
|
with_certbot: true
|
|
|
|
proxy_pass: http://localhost:8001
|
|
|
|
|
|
|
|
# backup etherpad database
|
|
|
|
- role: stable/restic
|
|
|
|
when: with_backup | bool
|
|
|
|
vars:
|
|
|
|
restic_databases:
|
|
|
|
- {name: 'gancio', dump_command: sudo -Hiu postgres pg_dump -Fc gancio}
|
|
|
|
restic_folders: ['/srv/gancio/uploads']
|