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