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.
 
 

36 lines
1.4 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. - name: Determine well-known files to check (start with /.well-known/matrix/client)
  6. ansible.builtin.set_fact:
  7. well_known_file_checks:
  8. - path: /.well-known/matrix/client
  9. purpose: Client Discovery
  10. cors: true
  11. follow_redirects: "{{ matrix_static_files_self_check_well_known_matrix_client_follow_redirects }}"
  12. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  13. - when: matrix_static_files_file_matrix_server_enabled | bool
  14. block:
  15. - name: Prepare /.well-known/matrix/server to well-known files to check, if enabled
  16. ansible.builtin.set_fact:
  17. well_known_file_check_matrix_server:
  18. path: /.well-known/matrix/server
  19. purpose: Server Discovery
  20. cors: false
  21. follow_redirects: safe
  22. validate_certs: "{{ matrix_static_files_self_check_validate_certificates }}"
  23. - name: Inject /.well-known/matrix/server to well-known files to check, if enabled
  24. ansible.builtin.set_fact:
  25. well_known_file_checks: "{{ well_known_file_checks + [well_known_file_check_matrix_server] }}"
  26. - name: Perform well-known checks
  27. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known_file.yml"
  28. with_items: "{{ well_known_file_checks }}"
  29. loop_control:
  30. loop_var: well_known_file_check