Fix the path of the active.standby file.

This commit is contained in:
Andrea Dell'Amico 2021-04-06 16:19:35 +02:00
parent f52f810ce2
commit 50e8e57c33
1 changed files with 4 additions and 1 deletions

View File

@ -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