matrix-docker-ansible-deploy/roles/matrix-base/tasks/self_check_dns.yml

24 lines
715 B
YAML
Raw Normal View History

2018-10-21 09:58:25 +00:00
---
- set_fact:
dns_srv_record_checks: []
2018-10-21 09:58:25 +00:00
- block:
- set_fact:
dns_srv_record_check_ma1sd:
service_and_protocol: "_matrix-identity._tcp"
2019-02-28 09:51:09 +00:00
domain: "{{ (matrix_domain + '.') }}"
expected_target: "{{ (matrix_server_fqn_matrix + '.') }}"
expected_port: 443
2018-10-21 09:58:25 +00:00
- name: Determine domains that we require certificates for (ma1sd)
set_fact:
dns_srv_record_checks: "{{ dns_srv_record_checks + [dns_srv_record_check_ma1sd] }}"
when: matrix_ma1sd_enabled|bool
2018-10-21 09:58:25 +00:00
- name: Perform DNS SRV checks
include_tasks: "{{ role_path }}/tasks/self_check_dns_srv.yml"
with_items: "{{ dns_srv_record_checks }}"
loop_control:
2019-02-28 09:51:09 +00:00
loop_var: dns_srv_record_check