2019-01-16 18:05:48 +02:00
---
2025-01-17 17:19:17 +09:00
- name : (Deprecation) Catch and report renamed coturn settings
2024-01-15 11:16:08 +02:00
ansible.builtin.fail :
msg : >-
Your configuration contains a variable, which now has a different name.
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
when : "item.old in vars"
with_items :
- {'old': 'matrix_coturn_docker_network', 'new' : 'matrix_coturn_container_network' }
2025-02-19 11:48:12 +02:00
- {'old': 'matrix_coturn_container_stun_plain_host_bind_port', 'new' : 'superseded by matrix_coturn_container_stun_plain_host_bind_port_tcp and matrix_coturn_container_stun_plain_host_bind_port_udp' }
- {'old': 'matrix_coturn_container_stun_tls_host_bind_port', 'new' : 'superseded by matrix_coturn_container_stun_tls_host_bind_port_tcp and matrix_coturn_container_stun_tls_host_bind_port_udp' }
2024-01-15 11:16:08 +02:00
2024-02-18 09:52:00 +02:00
- name : Fail if matrix_coturn_authentication_method is invalid
ansible.builtin.fail :
msg : >-
Invalid authentication method specified in `matrix_coturn_authentication_method`
when : "matrix_coturn_authentication_method not in ['auth-secret', 'lt-cred-mech']"
2025-01-17 17:19:17 +09:00
- name : Fail if required coturn settings not defined
2022-07-18 10:39:08 +03:00
ansible.builtin.fail :
2019-05-25 07:41:04 +09:00
msg : >-
2024-02-18 09:52:00 +02:00
You need to define a required configuration setting (`{{ item.name }}`).
when : "item.when | bool and vars[item.name] == ''"
2019-01-16 18:05:48 +02:00
with_items :
2024-02-18 09:52:00 +02:00
- {'name': 'matrix_coturn_turn_static_auth_secret', when : "{{ matrix_coturn_authentication_method == 'auth-secret' }}" }
- {'name': 'matrix_coturn_lt_cred_mech_username', when : "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}" }
- {'name': 'matrix_coturn_lt_cred_mech_password', when : "{{ matrix_coturn_authentication_method == 'lt-cred-mech' }}" }