| @@ -2,8 +2,8 @@ | |||||
| - when: matrix_coturn_turn_external_ip_address_auto_detection_enabled | bool | - when: matrix_coturn_turn_external_ip_address_auto_detection_enabled | bool | ||||
| block: | block: | ||||
| - when: matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url == '' | |||||
| name: Fail if enabled, but EchoIP service URL unset | |||||
| - name: Fail if enabled, but EchoIP service URL unset | |||||
| when: matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url == '' | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: "To use the external IP address auto-detection feature, you need to set matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url" | msg: "To use the external IP address auto-detection feature, you need to set matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url" | ||||
| @@ -24,8 +24,8 @@ | |||||
| delay: "{{ matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_retries_delay }}" | delay: "{{ matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_retries_delay }}" | ||||
| until: not result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response.failed | until: not result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response.failed | ||||
| - when: "(result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response.failed or 'json' not in result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response)" | |||||
| name: Fail if EchoIP service failed | |||||
| - name: Fail if EchoIP service failed | |||||
| when: "(result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response.failed or 'json' not in result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response)" | |||||
| ansible.builtin.fail: | ansible.builtin.fail: | ||||
| msg: "Failed contacting EchoIP service API at `{{ matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url }}` (controlled by `matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url`). Full error: {{ result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response }}" | msg: "Failed contacting EchoIP service API at `{{ matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url }}` (controlled by `matrix_coturn_turn_external_ip_address_auto_detection_echoip_service_url`). Full error: {{ result_matrix_coturn_turn_external_ip_address_auto_detection_echoip_response }}" | ||||