2018-10-21 17:58:25 +08:00
|
|
|
---
|
|
|
|
|
2019-01-08 16:39:22 +08:00
|
|
|
- name: Determine DNS SRV records to check (Matrix)
|
2019-01-08 16:19:45 +08:00
|
|
|
set_fact:
|
2019-01-08 16:39:22 +08:00
|
|
|
dns_srv_record_checks:
|
|
|
|
- service_and_protocol: "_matrix._tcp"
|
2019-02-28 17:51:09 +08:00
|
|
|
domain: "{{ (matrix_domain + '.') }}"
|
|
|
|
expected_target: "{{ (matrix_server_fqn_matrix + '.') }}"
|
2019-01-08 16:39:22 +08:00
|
|
|
expected_port: 8448
|
2018-10-21 17:58:25 +08:00
|
|
|
|
2019-01-08 16:39:22 +08:00
|
|
|
- block:
|
|
|
|
- set_fact:
|
|
|
|
dns_srv_record_check_mxisd:
|
|
|
|
service_and_protocol: "_matrix-identity._tcp"
|
2019-02-28 17:51:09 +08:00
|
|
|
domain: "{{ (matrix_domain + '.') }}"
|
|
|
|
expected_target: "{{ (matrix_server_fqn_matrix + '.') }}"
|
2019-01-08 16:39:22 +08:00
|
|
|
expected_port: 443
|
2018-10-21 17:58:25 +08:00
|
|
|
|
2019-01-08 16:39:22 +08:00
|
|
|
- name: Determine domains that we require certificates for (mxisd)
|
|
|
|
set_fact:
|
|
|
|
dns_srv_record_checks: "{{ dns_srv_record_checks + [dns_srv_record_check_mxisd] }}"
|
2019-05-21 23:25:59 +08:00
|
|
|
when: matrix_mxisd_enabled|bool
|
2018-10-21 17:58:25 +08:00
|
|
|
|
2019-01-08 16:39:22 +08:00
|
|
|
- name: Perform DNS SRV checks
|
2019-01-12 23:53:00 +08:00
|
|
|
include_tasks: "{{ role_path }}/tasks/self_check_dns_srv.yml"
|
2019-01-08 16:39:22 +08:00
|
|
|
with_items: "{{ dns_srv_record_checks }}"
|
|
|
|
loop_control:
|
2019-02-28 17:51:09 +08:00
|
|
|
loop_var: dns_srv_record_check
|