Closed rrrru closed 1 year ago
Find comment
# comment out this check if pgbouncer_install: false
- { args: ["systemctl", "status", "pgbouncer"], interval: "5s" }
Strange, but doesn't works with patroni_cluster_name: "postgres-cluster"
Clean envariment with command
ansible-playbook -i inventory remove_cluster.yml -e remove_postgres=true -e remove_consul=true
Update patroni_cluster_name
to patroni_cluster_name: "postgres-cluster-test"
and it's role done sucessful
upd: After failed Playbook runs, there are still records in Consul.
It is necessary to delete keys from the consul, then the run will be successful.
systemctl start consul
consul kv get -recurse # to get all keys
for example: consul kv delete -recurse service/postgres-cluster
Patroni
journalctl -u patroni -f
vars/main.yml
It is suspected that initialization does not work if pgbouncer is disabled