From f69ea6a30ade294c01ef8b40ba20c15ae4afc283 Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 21 Jul 2020 18:56:17 +0200 Subject: [PATCH] fix error --- templates/postgresql-backup-script.sh.j2 | 2 +- vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/postgresql-backup-script.sh.j2 b/templates/postgresql-backup-script.sh.j2 index 4826910..10bf297 100644 --- a/templates/postgresql-backup-script.sh.j2 +++ b/templates/postgresql-backup-script.sh.j2 @@ -21,7 +21,7 @@ backup_databases() { if (umask 077 && pg_dump -F {{ postgresql_backup.export_option | string }} -h "{{ db.host | default( 'localhost' ) }}" -U "{{ db.user | default( 'postgres' ) }}" -p "{{ db.port | default( '5432' ) }}" "{{ db.name }}" -f "{{ db.name }}.in_progress.psql"); then {% if postgresql_backup.create_tar_gz %} mv "{{ db.name }}.in_progress.psql" "{{ db.name }}.psql" - tar -czvf "{{ db.name }}.psql.tar.gz" "{{ db.name }}.in_progress.psql" + tar -czvf "{{ db.name }}.psql.tar.gz" "{{ db.name }}.psql" rm "{{ db.name }}.psql" {% else %} mv "{{ db.name }}.in_progress.psql" "{{ db.name }}.psql" diff --git a/vars/main.yml b/vars/main.yml index cac1568..b4a34ce 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -17,5 +17,5 @@ _postgresql_backup: databases: [] # versionscheck -playbook_version_number: 23 # should be int +playbook_version_number: 24 # should be int playbook_version_path: 'role-postgresql-backup_roles-ansible_github.com.version' # unique string