- matrix_postgres_backup_databases now uses more simple structure

This commit is contained in:
foxcris
2021-04-05 09:05:41 +02:00
parent 76fbc59b61
commit 2178f3612f
3 changed files with 6 additions and 9 deletions

View File

@ -1422,13 +1422,11 @@ matrix_postgres_backup_connection_password: "{{ matrix_postgres_connection_passw
# 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,
'username': matrix_synapse_database_user,
'password': matrix_synapse_database_password,
}] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
([
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
matrix_postgres_additional_databases|map(attribute='name')
}}
######################################################################