Matrix Docker Ansible eploy
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.
 
 

37 lines
1.4 KiB

  1. # We need others to be able to read these directories too,
  2. # so that matrix-nginx-proxy's nginx user can access the files.
  3. #
  4. # For running with another webserver, we recommend being part of the `matrix` group.
  5. - name: Ensure Matrix static-files path exists
  6. file:
  7. path: "{{ item }}"
  8. state: directory
  9. mode: 0755
  10. owner: "{{ matrix_user_username }}"
  11. group: "{{ matrix_user_groupname }}"
  12. with_items:
  13. - "{{ matrix_static_files_base_path }}/.well-known/matrix"
  14. - name: Ensure Matrix /.well-known/matrix/client file configured
  15. template:
  16. src: "{{ role_path }}/templates/static-files/well-known/matrix-client.j2"
  17. dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/client"
  18. mode: 0644
  19. owner: "{{ matrix_user_username }}"
  20. group: "{{ matrix_user_groupname }}"
  21. - name: Ensure Matrix /.well-known/matrix/server file configured
  22. template:
  23. src: "{{ role_path }}/templates/static-files/well-known/matrix-server.j2"
  24. dest: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
  25. mode: 0644
  26. owner: "{{ matrix_user_username }}"
  27. group: "{{ matrix_user_groupname }}"
  28. when: matrix_well_known_matrix_server_enabled|bool
  29. - name: Ensure Matrix /.well-known/matrix/server file deleted
  30. file:
  31. path: "{{ matrix_static_files_base_path }}/.well-known/matrix/server"
  32. state: absent
  33. when: "not matrix_well_known_matrix_server_enabled|bool"