From cb7726f4a8b3082e1fdab8949c60f07f5b6bdee7 Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sun, 21 Jul 2024 08:23:42 +0300 Subject: [PATCH] Make sure Draupnir is connected to Pantalaimon's network when Pantalaimon enabled Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3434 --- group_vars/matrix_servers | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 75b5f96f3..1ccaacf1d 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -2802,7 +2802,11 @@ matrix_bot_draupnir_container_network: "{{ matrix_addons_container_network }}" matrix_bot_draupnir_container_additional_networks_auto: |- {{ - ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network]) + ( + ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network]) + + + ([matrix_pantalaimon_container_network] if (matrix_bot_draupnir_pantalaimon_use and matrix_pantalaimon_container_network != matrix_bot_draupnir_container_network) else []) + ) | unique }} matrix_bot_draupnir_homeserver_url: "{{ 'http://matrix-pantalaimon:8009' if matrix_bot_draupnir_pantalaimon_use else matrix_addons_homeserver_client_api_url }}"