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.1 KiB

  1. ---
  2. # We need others to be able to read these directories too,
  3. # so that matrix-nginx-proxy's nginx user can access the files.
  4. #
  5. # For running with another webserver, we recommend being part of the `matrix` group.
  6. - name: Ensure Matrix static-files path exists
  7. ansible.builtin.file:
  8. path: "{{ item }}"
  9. state: directory
  10. mode: 0755
  11. owner: "{{ matrix_user_username }}"
  12. group: "{{ matrix_user_groupname }}"
  13. with_items:
  14. - "{{ matrix_static_files_base_path }}/.well-known/matrix"
  15. - name: Ensure Matrix /.well-known/matrix/client file configured
  16. ansible.builtin.copy:
  17. content: "{{ matrix_well_known_matrix_client_configuration | to_nice_json }}"
  18. dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/client"
  19. mode: 0644
  20. owner: "{{ matrix_user_username }}"
  21. group: "{{ matrix_user_groupname }}"
  22. - name: Ensure Matrix /.well-known/matrix/server file configured
  23. ansible.builtin.copy:
  24. content: "{{ matrix_well_known_matrix_server_configuration | to_nice_json }}"
  25. dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
  26. mode: 0644
  27. owner: "{{ matrix_user_username }}"
  28. group: "{{ matrix_user_groupname }}"
  29. when: matrix_well_known_matrix_server_enabled | bool
  30. - name: Ensure Matrix /.well-known/matrix/server file deleted
  31. ansible.builtin.file:
  32. path: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
  33. state: absent
  34. when: "not matrix_well_known_matrix_server_enabled | bool"
  35. - name: Ensure Matrix /.well-known/matrix/support file configured
  36. ansible.builtin.copy:
  37. content: "{{ matrix_well_known_matrix_support_configuration | to_nice_json }}"
  38. dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/support"
  39. mode: 0644
  40. owner: "{{ matrix_user_username }}"
  41. group: "{{ matrix_user_groupname }}"
  42. when: matrix_well_known_matrix_support_enabled | bool
  43. - name: Ensure Matrix /.well-known/matrix/support file deleted
  44. ansible.builtin.file:
  45. path: "{{ matrix_static_files_base_path }}/.well-known/matrix/support"
  46. state: absent
  47. when: "not matrix_well_known_matrix_support_enabled | bool"