An Ansible role which installs and configures Patroni - HA solution for PostgreSQL.
This role requires root privileges, so tell ansible to use become: true
in any convenient way for you.
Coming soon.
There are no dependencies for the role, but Patroni itself needs a DCS (Etcd, Consul, ZooKeeper or Exhibitor) to be installed and configured properly and it's your responsibility to make it up and running before using this role.
Currently, it is supposed that a DCS is prepared. Otherwise, you can try one of the following roles (just uncomment respective section here and set patroni_dcs_exists
variable to false):
- hosts: postgresql-servers
become: yes
roles:
- kostiantyn-nemchenko.patroni
MIT
Kostiantyn Nemchenko kostiantyn.nemchenko@gmail.com