2018-10-21 11:58:25 +02:00
|
|
|
---
|
|
|
|
|
2019-02-05 12:08:00 +02:00
|
|
|
- name: Determine well-known files to check (Matrix)
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.set_fact:
|
2019-02-05 12:08:00 +02:00
|
|
|
well_known_file_checks:
|
|
|
|
- path: /.well-known/matrix/client
|
|
|
|
purpose: Client Discovery
|
|
|
|
cors: true
|
2020-03-31 10:45:32 +02:00
|
|
|
follow_redirects: "{{ matrix_nginx_proxy_self_check_well_known_matrix_client_follow_redirects }}"
|
2019-03-22 09:39:17 +02:00
|
|
|
validate_certs: "{{ matrix_nginx_proxy_self_check_validate_certificates }}"
|
2019-02-05 12:08:00 +02:00
|
|
|
|
|
|
|
- block:
|
2022-07-18 09:39:08 +02:00
|
|
|
- ansible.builtin.set_fact:
|
2019-02-05 12:08:00 +02:00
|
|
|
well_known_file_check_matrix_server:
|
|
|
|
path: /.well-known/matrix/server
|
|
|
|
purpose: Server Discovery
|
|
|
|
cors: false
|
2020-01-22 23:33:20 +02:00
|
|
|
follow_redirects: safe
|
2019-03-22 09:39:17 +02:00
|
|
|
validate_certs: "{{ matrix_nginx_proxy_self_check_validate_certificates }}"
|
2019-02-05 12:08:00 +02:00
|
|
|
|
2020-01-08 23:31:44 +02:00
|
|
|
- name: Determine domains that we require certificates for (ma1sd)
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.set_fact:
|
2019-02-05 12:08:00 +02:00
|
|
|
well_known_file_checks: "{{ well_known_file_checks + [well_known_file_check_matrix_server] }}"
|
2019-05-21 17:25:59 +02:00
|
|
|
when: matrix_well_known_matrix_server_enabled|bool
|
2019-02-05 12:08:00 +02:00
|
|
|
|
2019-02-05 11:07:08 +02:00
|
|
|
- name: Perform well-known checks
|
|
|
|
include_tasks: "{{ role_path }}/tasks/self_check_well_known_file.yml"
|
2019-02-05 12:08:00 +02:00
|
|
|
with_items: "{{ well_known_file_checks }}"
|
2019-02-05 11:07:08 +02:00
|
|
|
loop_control:
|
|
|
|
loop_var: well_known_file_check
|