From 5d5dc671a59adc038536e114c0183721d291120b Mon Sep 17 00:00:00 2001 From: Vibhor Kumar Date: Fri, 20 Aug 2021 10:55:38 -0400 Subject: [PATCH] adding the fix for barman archive --- VERSION | 2 +- roles/setup_barman/tasks/post_configure_barman.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d5c0c9914..87ce49290 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.5.1 +3.5.2 diff --git a/roles/setup_barman/tasks/post_configure_barman.yml b/roles/setup_barman/tasks/post_configure_barman.yml index 456a60fcf..7f22e3900 100644 --- a/roles/setup_barman/tasks/post_configure_barman.yml +++ b/roles/setup_barman/tasks/post_configure_barman.yml @@ -46,6 +46,13 @@ become: true become_user: barman +- name: Archive the first WAL file using barman + ansible.builtin.command: + cmd: "/usr/bin/barman switch-wal {{ inventory_hostname }}-{{ pg_instance_name }} --archive" + delegate_to: "{{ _barman_server_public_ip }}" + become: true + become_user: barman + - name: Execute barman check ansible.builtin.command: cmd: "/usr/bin/barman check {{ inventory_hostname }}-{{ pg_instance_name }}"