Flush the handlers when needed.

This commit is contained in:
Andrea Dell'Amico 2021-04-06 16:55:11 +02:00
parent 50e8e57c33
commit d73add956c
1 changed files with 6 additions and 0 deletions

View File

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