Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
957 B

7 years ago
7 years ago
7 years ago
  1. ---
  2. - name: set synapse server name
  3. debconf:
  4. name: 'matrix-synapse'
  5. question: 'matrix-synapse/server-name'
  6. vtype: 'string'
  7. value: '{{ ansible_hostname }}'
  8. - name: install synapse
  9. include_role:
  10. name: service
  11. # static: yes # see static include issue: https://github.com/ansible/ansible/issues/13485
  12. vars:
  13. service_name: matrix-synapse
  14. service_packages:
  15. - matrix-synapse
  16. - name: fix synapse folders permissions
  17. file:
  18. path: "{{ item }}"
  19. owner: matrix-synapse
  20. group: nogroup
  21. mode: 0750
  22. state: directory
  23. with_items:
  24. - /etc/matrix-synapse
  25. - /etc/matrix-synapse/conf.d
  26. - name: upload synapse reverse proxy conf
  27. template:
  28. src: synapse.conf
  29. dest: "/etc/nginx/locations/{{ server_fqdn }}/synapse.conf"
  30. notify:
  31. - restart nginx
  32. - name: upload synapse conf
  33. template:
  34. src: homeserver.yaml.j2
  35. dest: /etc/matrix-synapse/homeserver.yaml
  36. notify: "restart matrix-synapse"