From 499389d3924309b452d259a93d9379f37a1b4c09 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 22 Mar 2021 16:00:06 +0100 Subject: [PATCH] Update to 2021-03-22 16:00 --- roles/matrix_synapse/defaults/main.yml | 2 +- roles/matrix_synapse/tasks/archive_pre.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/matrix_synapse/defaults/main.yml b/roles/matrix_synapse/defaults/main.yml index d615722..2ef6022 100644 --- a/roles/matrix_synapse/defaults/main.yml +++ b/roles/matrix_synapse/defaults/main.yml @@ -1,7 +1,7 @@ --- # Synapse version to deploy -synapse_version: 1.29.0 +synapse_version: 1.30.0 # Should ansible handle Synapse upgrades ? If false, only initial install will be done synapse_manage_upgrade: True diff --git a/roles/matrix_synapse/tasks/archive_pre.yml b/roles/matrix_synapse/tasks/archive_pre.yml index eabdfc7..ad0d49f 100644 --- a/roles/matrix_synapse/tasks/archive_pre.yml +++ b/roles/matrix_synapse/tasks/archive_pre.yml @@ -18,13 +18,13 @@ tags: matrix - name: Archive a database dump - command: > + shell: > /usr/pgsql-13/bin/pg_dump --clean --host={{ synapse_pg_db_server }} --port={{ synapse_pg_db_port }} - --username=sqladmin {{ synapse_pg_db_name }} - --file={{ synapse_root_dir }}/archives/{{ synapse_current_version }}/{{ synapse_pg_db_name }}.sql + --username=sqladmin {{ synapse_pg_db_name }} | + zstd -T0 -10 -c > {{ synapse_root_dir }}/archives/{{ synapse_current_version }}/{{ synapse_pg_db_name }}.sql.zst environment: - PGPASSWORD: "{{ pg_admin_pass }}" tags: matrix