Matrix Docker Ansible eploy
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

53 řádky
2.2 KiB

  1. ---
  2. # We install this into Synapse by making `matrix_synapse_ext_synapse_s3_storage_provider_enabled` influence other variables:
  3. # - `matrix_synapse_media_storage_providers` (via `matrix_synapse_media_storage_providers_auto`)
  4. # - `matrix_synapse_container_image_customizations_enabled`
  5. # - `matrix_synapse_container_image_customizations_s3_storage_provider_installation_enabled`
  6. #
  7. # Below are additional tasks for setting up various helper scripts, etc.
  8. - name: Ensure s3-storage-provider env file installed
  9. ansible.builtin.template:
  10. src: "{{ role_path }}/templates/synapse/ext/s3-storage-provider/env.j2"
  11. dest: "{{ matrix_synapse_ext_s3_storage_provider_path }}/env"
  12. mode: 0640
  13. - name: Ensure s3-storage-provider data path exists
  14. ansible.builtin.file:
  15. path: "{{ matrix_synapse_ext_s3_storage_provider_path }}/data"
  16. state: directory
  17. mode: 0750
  18. owner: "{{ matrix_user_username }}"
  19. group: "{{ matrix_user_groupname }}"
  20. - name: Ensure s3-storage-provider database.yaml file installed
  21. ansible.builtin.template:
  22. src: "{{ role_path }}/templates/synapse/ext/s3-storage-provider/database.yaml.j2"
  23. dest: "{{ matrix_synapse_ext_s3_storage_provider_path }}/data/database.yaml"
  24. mode: 0640
  25. - name: Ensure s3-storage-provider scripts installed
  26. ansible.builtin.template:
  27. src: "{{ role_path }}/templates/synapse/ext/s3-storage-provider/usr-local-bin/{{ item }}.j2"
  28. dest: "{{ matrix_local_bin_path }}/{{ item }}"
  29. mode: 0750
  30. with_items:
  31. - matrix-synapse-s3-storage-provider-shell
  32. - matrix-synapse-s3-storage-provider-migrate
  33. - name: Ensure matrix-synapse-s3-storage-provider-migrate.service and timer are installed
  34. ansible.builtin.template:
  35. src: "{{ role_path }}/templates/synapse/ext/s3-storage-provider/systemd/{{ item }}.j2"
  36. dest: "{{ matrix_systemd_path }}/{{ item }}"
  37. mode: 0640
  38. with_items:
  39. - matrix-synapse-s3-storage-provider-migrate.service
  40. - matrix-synapse-s3-storage-provider-migrate.timer
  41. register: matrix_synapse_s3_storage_provider_systemd_service_result
  42. - name: Ensure systemd reloaded after matrix-synapse-s3-storage-provider-migrate.service installation
  43. ansible.builtin.service:
  44. daemon_reload: true
  45. when: matrix_synapse_s3_storage_provider_systemd_service_result.changed | bool