From 018a609e4715b07cd2a26ce424fd502973679e1d Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Sat, 26 Nov 2022 18:57:45 +0200 Subject: [PATCH] Simplify matrix_postgres_backup_databases definition Related to 71de7cd8cd814c9a6 --- group_vars/matrix_servers | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index 2bcb22da..940a52e6 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -2932,15 +2932,7 @@ matrix_postgres_backup_connection_password: "{{ matrix_postgres_connection_passw matrix_postgres_backup_postgres_data_path: "{{ matrix_postgres_data_path if matrix_postgres_enabled else '' }}" -# the default matrix synapse databse is not always part of the matrix_postgres_additional_databases variable thus we have to add it if the default database is used -matrix_postgres_backup_databases: | - {{ - (([{ - 'name': matrix_synapse_database_database - }] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else []) - + - matrix_postgres_additional_databases)|map(attribute='name') | list - }} +matrix_postgres_backup_databases: "{{ matrix_postgres_additional_databases | map(attribute='name') if matrix_postgres_enabled else [] }}" ###################################################################### #