From 50e8e57c33a23ea10aea139b9c1d1a9f0f2b00aa Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 6 Apr 2021 16:19:35 +0200 Subject: [PATCH] Fix the path of the active.standby file. --- tasks/postgresql-streaming-replication.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/postgresql-streaming-replication.yml b/tasks/postgresql-streaming-replication.yml index e56635d..8b34762 100644 --- a/tasks/postgresql-streaming-replication.yml +++ b/tasks/postgresql-streaming-replication.yml @@ -111,9 +111,12 @@ - name: Check if a replica is already enabled stat: - path: '{{ postgresql_active_data_dir }}/.standby.signal' + path: '{{ postgresql_active_data_dir }}/standby.signal' register: standby_signal_file + - debug: + msg: 'Replica file: {{ postgresql_active_data_dir }}/standby.signal' + - name: Stop the postgresql service on deb systems service: name: postgresql