High availability (HA) for Pi-hole (running two Pi-hole's)

Just wanted to share my solution here with you incase sb is interested: GitHub - shaderecker/ansible-pihole: Bootstrap a Raspberry Pi with Ansible and install Docker + Pi-hole

  • Complete deployment automated in Ansible
  • Basic bootstrapping, configuration and updates
  • Pi-hole as docker container
  • High availability failover cluster with keepalived (IPv4 & IPv6)
  • Synchronisation of settings between Pi-hole instances with rsync:
    • gravity.db (Adlists, Domains, Clients, Groups, Group Assignments of all aforementioned items)
    • custom.list (Local DNS Records)
    • 05-pihole-custom-cname.conf (Local CNAME Records)
1 Like