Fix a check.
This commit is contained in:
parent
b406707653
commit
f52f810ce2
|
@ -14,7 +14,7 @@
|
|||
name: '{{ item.name }}'
|
||||
value: "{{ item.value }}"
|
||||
loop: '{{ psql_streaming_replication_config }}'
|
||||
when: postgresql_streaming_replication_primary_node == '{{ ansible_fqdn }}'
|
||||
when: postgresql_streaming_replication_primary_node == ansible_fqdn
|
||||
notify: Restart postgresql
|
||||
|
||||
become: True
|
||||
|
@ -160,5 +160,5 @@
|
|||
- ansible_distribution_file_variety == "RedHat"
|
||||
- not standby_signal_file.stat.exists
|
||||
|
||||
when: postgresql_streaming_replication_primary_node != '{{ ansible_fqdn }}'
|
||||
when: postgresql_streaming_replication_primary_node != ansible_fqdn
|
||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ]
|
||||
|
|
Loading…
Reference in New Issue