2020-09-29 13:43:03 +02:00
|
|
|
---
|
|
|
|
dependencies:
|
2020-09-30 10:26:02 +02:00
|
|
|
|
|
|
|
# install nodejs
|
2020-11-10 23:14:10 +01:00
|
|
|
- role: stable/nodejs
|
2020-09-30 10:26:02 +02:00
|
|
|
|
|
|
|
# install postgres
|
|
|
|
# and create an etherpad user and db
|
2020-11-10 23:14:10 +01:00
|
|
|
- role: stable/postgresql
|
2020-09-29 13:43:03 +02:00
|
|
|
vars:
|
|
|
|
username: etherpad
|
|
|
|
password: "{{ database_password }}"
|
|
|
|
database: etherpad
|
2020-09-30 10:26:02 +02:00
|
|
|
|
2020-11-21 23:42:08 +01:00
|
|
|
# install certbot nginx and configure it as reverse proxy
|
2021-01-04 18:56:12 +01:00
|
|
|
- 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: 'etherpad', dump_command: sudo -Hiu postgres pg_dump -Fc etherpad}
|