mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-08-06 16:03:06 +10:00
904f17161b
Bridges based on bridgev2 no longer expose a metrics endpoint, so the playbook was publishing a Traefik route which could only ever yield an HTTP 502. Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/5487
39 lines
3.0 KiB
YAML
39 lines
3.0 KiB
YAML
# SPDX-FileCopyrightText: 2026 MDAD project contributors
|
|
# SPDX-FileCopyrightText: 2026 Nikita Chernyi
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
Your configuration contains a variable, which now has a different name.
|
|
Please rename the variable (`{{ item.old }}` -> `{{ item.new }}`) on your configuration file (vars.yml).
|
|
when: "lookup('ansible.builtin.varnames', ('^' + item.old + '$'), wantlist=True) | length > 0"
|
|
with_items:
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_metrics_enabled', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_metrics_proxying_enabled', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_metrics_proxying_hostname', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_metrics_proxying_path_prefix', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_enabled', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_traefik_rule', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_traefik_priority', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_traefik_entrypoints', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_traefik_tls', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_traefik_tls_certResolver', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_middleware_basic_auth_enabled', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
- {'old': 'matrix_bridge_mautrix_gvoice_container_labels_metrics_middleware_basic_auth_users', 'new': '<removed> (mautrix-gvoice does not support metrics)'}
|
|
|
|
- name: Fail if required mautrix-gvoice settings not defined
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
You need to define a required configuration setting (`{{ item.name }}`).
|
|
when: "item.when | bool and lookup('vars', item.name, default='') | string | length == 0"
|
|
with_items:
|
|
- {'name': 'matrix_bridge_mautrix_gvoice_appservice_token', when: true}
|
|
- {'name': 'matrix_bridge_mautrix_gvoice_homeserver_address', when: true}
|
|
- {'name': 'matrix_bridge_mautrix_gvoice_homeserver_token', when: true}
|
|
- {'name': 'matrix_bridge_mautrix_gvoice_database_hostname', when: "{{ matrix_bridge_mautrix_gvoice_database_engine == 'postgres' }}"}
|
|
- {'name': 'matrix_bridge_mautrix_gvoice_container_network', when: true}
|