From ff89cb8acb02d4dfbe565ca0c2fbd3e0ec34c6f3 Mon Sep 17 00:00:00 2001 From: dissolution <50195845+SDV109@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:35:14 +0700 Subject: [PATCH] Fix PITR Changing the target-action parameter from shutdown to pause --- automation/roles/patroni/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/roles/patroni/tasks/main.yml b/automation/roles/patroni/tasks/main.yml index 709cf5ee4..2d5d6f49c 100644 --- a/automation/roles/patroni/tasks/main.yml +++ b/automation/roles/patroni/tasks/main.yml @@ -673,7 +673,7 @@ - name: Run "{{ pgbackrest_patroni_cluster_restore_command }}" on Replica ansible.builtin.command: > {{ pgbackrest_patroni_cluster_restore_command }} - {{ '--target-action=shutdown' if pgbackrest_patroni_cluster_restore_command is search('--type=') else '' }} + {{ '--target-action=pause' if pgbackrest_patroni_cluster_restore_command is search('--type=') else '' }} async: "{{ cluster_restore_timeout | default(86400) }}" # timeout 24 hours poll: 0 register: pgbackrest_restore_replica