Fix a check.

This commit is contained in:
Andrea Dell'Amico 2021-04-06 16:15:58 +02:00
parent b406707653
commit f52f810ce2
1 changed files with 2 additions and 2 deletions

View File

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