---

- name: Fail if required Coturn settings not defined
  fail:
    msg: >-
      You need to define a required configuration setting (`{{ item }}`) for using Coturn.
  when: "vars[item] == ''"
  with_items:
    - "matrix_coturn_turn_external_ip_address"
    - "matrix_coturn_turn_static_auth_secret"