main.yml 640 B

123456789101112131415161718192021222324252627
  1. ---
  2. dependencies:
  3. # install nodejs
  4. - role: stable/nodejs
  5. # install postgres
  6. # and create an etherpad user and db
  7. - role: stable/postgresql
  8. vars:
  9. username: etherpad
  10. password: "{{ database_password }}"
  11. database: etherpad
  12. # install certbot nginx and configure it as reverse proxy
  13. - role: stable/nginx
  14. when: with_nginx | bool
  15. vars:
  16. with_certbot: true
  17. proxy_pass: http://localhost:8001
  18. # backup etherpad database
  19. - role: stable/restic
  20. when: with_backup | bool
  21. vars:
  22. restic_databases:
  23. - {name: 'etherpad', dump_command: sudo -Hiu postgres pg_dump -Fc etherpad}