diff --git a/inventories/example-ha/group_vars/all.yml b/inventories/example-ha/group_vars/all.yml index ee3bc2180fbcd5b96687deada69e9bed2c1a0a42..e1ae255483eda9c428aee96fad9401be33e3d41c 100644 --- a/inventories/example-ha/group_vars/all.yml +++ b/inventories/example-ha/group_vars/all.yml @@ -18,7 +18,7 @@ hap_config_listen: bind localhost:54321 default-server inter 2s fall 3 rise 2 on-marked-down shutdown-sessions option tcp-check - tcp-check expect string (primary|standby) + tcp-check expect rstring (primary|standby) maxconn 500 server pg1 192.168.122.1:5432 maxconn 500 check port 8543 server pg2 192.168.122.2:5432 maxconn 500 check port 8543 diff --git a/playbooks/postgres-ha.yml b/playbooks/postgres-ha.yml index 70295a8d7cefa9505bdb92529040fa02448eedb3..ba4b538ad3940ea53f88ed0bae49574ad21ab1b6 100755 --- a/playbooks/postgres-ha.yml +++ b/playbooks/postgres-ha.yml @@ -22,9 +22,7 @@ - postgres-ha - name: POSTGRES HA CLIENTS - hosts: - - mediaserver - - mirismanager + hosts: mediaserver tags: postgres pre_tasks: - name: check that haproxy is configured