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' ]