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.
 
 

31 line
1.2 KiB

  1. ---
  2. - name: Determine well-known files to check (Matrix)
  3. ansible.builtin.set_fact:
  4. well_known_file_checks:
  5. - path: /.well-known/matrix/client
  6. purpose: Client Discovery
  7. cors: true
  8. follow_redirects: "{{ matrix_nginx_proxy_self_check_well_known_matrix_client_follow_redirects }}"
  9. validate_certs: "{{ matrix_nginx_proxy_self_check_validate_certificates }}"
  10. - when: matrix_well_known_matrix_server_enabled | bool
  11. block:
  12. - ansible.builtin.set_fact:
  13. well_known_file_check_matrix_server:
  14. path: /.well-known/matrix/server
  15. purpose: Server Discovery
  16. cors: false
  17. follow_redirects: safe
  18. validate_certs: "{{ matrix_nginx_proxy_self_check_validate_certificates }}"
  19. - name: Determine domains that we require certificates for (ma1sd)
  20. ansible.builtin.set_fact:
  21. well_known_file_checks: "{{ well_known_file_checks + [well_known_file_check_matrix_server] }}"
  22. - name: Perform well-known checks
  23. ansible.builtin.include_tasks: "{{ role_path }}/tasks/self_check_well_known_file.yml"
  24. with_items: "{{ well_known_file_checks }}"
  25. loop_control:
  26. loop_var: well_known_file_check