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.

24 lines
715 B

  1. ---
  2. - set_fact:
  3. dns_srv_record_checks: []
  4. - block:
  5. - set_fact:
  6. dns_srv_record_check_ma1sd:
  7. service_and_protocol: "_matrix-identity._tcp"
  8. domain: "{{ (matrix_domain + '.') }}"
  9. expected_target: "{{ (matrix_server_fqn_matrix + '.') }}"
  10. expected_port: 443
  11. - name: Determine domains that we require certificates for (ma1sd)
  12. set_fact:
  13. dns_srv_record_checks: "{{ dns_srv_record_checks + [dns_srv_record_check_ma1sd] }}"
  14. when: matrix_ma1sd_enabled|bool
  15. - name: Perform DNS SRV checks
  16. include_tasks: "{{ role_path }}/tasks/self_check_dns_srv.yml"
  17. with_items: "{{ dns_srv_record_checks }}"
  18. loop_control:
  19. loop_var: dns_srv_record_check