From d73add956cb5735332052860bee1e3f689f66735 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 6 Apr 2021 16:55:11 +0200 Subject: [PATCH] Flush the handlers when needed. --- tasks/postgresql-streaming-replication.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/postgresql-streaming-replication.yml b/tasks/postgresql-streaming-replication.yml index 8b34762..742e01d 100644 --- a/tasks/postgresql-streaming-replication.yml +++ b/tasks/postgresql-streaming-replication.yml @@ -17,6 +17,8 @@ when: postgresql_streaming_replication_primary_node == ansible_fqdn notify: Restart postgresql + - meta: flush_handlers + become: True become_user: postgres tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ] @@ -51,6 +53,8 @@ notify: Reload postgresql when: psql_enable_ssl + - meta: flush_handlers + when: ansible_distribution_file_variety == "Debian" tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ] @@ -84,6 +88,8 @@ notify: Reload postgresql when: psql_enable_ssl + - meta: flush_handlers + when: ansible_distribution_file_variety == "RedHat" tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]