{"repo":"danylomikula/ansible-pihole-cluster","free":true,"listed":false,"github":"https://github.com/danylomikula/ansible-pihole-cluster","clone":"git clone https://github.com/danylomikula/ansible-pihole-cluster.git","description":"☄️ The easiest way to bootstrap a robust Pi-hole v6 Highly Available cluster using Ansible with Keepalived for failover management, Nebula Sync for nodes synchronization, and Unbound as a recursive DNS server for higher privacy.","language":"Jinja","stars":39,"topics":["ansible","ansible-playbook","debian","high-availability","linux","pi-hole","pihole","raspberry-pi","rockylinux","ubuntu"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Pi-hole HA cluster with Keepalived, Nebula Sync, and Unbound General Information This Ansible Collection will allow you to bootstrap a Highly Available Pi-hole cluster with: - [x] keepalived - VRRP failover with Virtual IP - [x] nebula-sync - Pi-hole settings synchronization - [x] unbound - Recursive DNS resolver - [x] pihole-updatelists - Automated blocklist management Has been tested on: - [x] Debian - version 13 (Trixie) - [x] Ubuntu - version 24.04 (Noble Numbat) - [x] Rocky Linux - version 10 Requirements - Ansible 2.17+ installed on the control machine. - Two Linux nodes where Pi-hole will be installed. - Static IP configured on each node. If your Linux distribution network controller is NetworkManager, you can use this example to set static IP, DNS, and gateway: - SSH access from the control machine to the nodes. - Use SSH keys (recommended) or run playbooks with -k to be prompted for the SSH password. - Privilege escalation via sudo is required. - Use passwordless sudo (recommended) or run playbooks with -K to be prompted for the sudo password. If your sudo policy requires a password, either use -K or enable passwordless sudo for the Ansible user. Example (run as root , replace ansible with your user): [!NOTE] You can use ansible-bootstrap to automate initial host setup (SSH keys, sudo, static IP, etc.) before running this collection. Guide Read the step-by-step guide: Build a Highly Available Pi-hole Cluster with Ansible (VRRP) Getting Started 1. Install the Collecti","default_branch":null,"files":null,"tree":[],"storefront":"/r/danylomikula","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/danylomikula/ansible-pihole-cluster/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}