Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

38 строки
1.4 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. 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. 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. 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. 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"