Flush the handlers when needed.
This commit is contained in:
parent
50e8e57c33
commit
d73add956c
|
@ -17,6 +17,8 @@
|
||||||
when: postgresql_streaming_replication_primary_node == ansible_fqdn
|
when: postgresql_streaming_replication_primary_node == ansible_fqdn
|
||||||
notify: Restart postgresql
|
notify: Restart postgresql
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ]
|
||||||
|
@ -51,6 +53,8 @@
|
||||||
notify: Reload postgresql
|
notify: Reload postgresql
|
||||||
when: psql_enable_ssl
|
when: psql_enable_ssl
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
when: ansible_distribution_file_variety == "Debian"
|
when: ansible_distribution_file_variety == "Debian"
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
||||||
|
|
||||||
|
@ -84,6 +88,8 @@
|
||||||
notify: Reload postgresql
|
notify: Reload postgresql
|
||||||
when: psql_enable_ssl
|
when: psql_enable_ssl
|
||||||
|
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
when: ansible_distribution_file_variety == "RedHat"
|
when: ansible_distribution_file_variety == "RedHat"
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue