2018-10-21 09:58:25 +00:00
|
|
|
---
|
|
|
|
|
2019-01-08 08:39:22 +00:00
|
|
|
- name: Determine DNS SRV records to check (Matrix)
|
2019-01-08 08:19:45 +00:00
|
|
|
set_fact:
|
2019-01-08 08:39:22 +00:00
|
|
|
dns_srv_record_checks:
|
|
|
|
- service_and_protocol: "_matrix._tcp"
|
|
|
|
domain: "{{ (hostname_identity + '.') }}"
|
|
|
|
expected_target: "{{ (hostname_matrix + '.') }}"
|
|
|
|
expected_port: 8448
|
2018-10-21 09:58:25 +00:00
|
|
|
|
2019-01-08 08:39:22 +00:00
|
|
|
- block:
|
|
|
|
- set_fact:
|
|
|
|
dns_srv_record_check_mxisd:
|
|
|
|
service_and_protocol: "_matrix-identity._tcp"
|
|
|
|
domain: "{{ (hostname_identity + '.') }}"
|
|
|
|
expected_target: "{{ (hostname_matrix + '.') }}"
|
|
|
|
expected_port: 443
|
2018-10-21 09:58:25 +00:00
|
|
|
|
2019-01-08 08:39:22 +00: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] }}"
|
|
|
|
when: "matrix_mxisd_enabled"
|
2018-10-21 09:58:25 +00:00
|
|
|
|
2019-01-08 08:39:22 +00:00
|
|
|
- name: Perform DNS SRV checks
|
2019-01-12 15:53:00 +00:00
|
|
|
include_tasks: "{{ role_path }}/tasks/self_check_dns_srv.yml"
|
2019-01-08 08:39:22 +00:00
|
|
|
with_items: "{{ dns_srv_record_checks }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: dns_srv_record_check
|