{"repo":"shaderecker/ansible-pihole","free":true,"listed":false,"github":"https://github.com/shaderecker/ansible-pihole","clone":"git clone https://github.com/shaderecker/ansible-pihole.git","description":"Bootstrap a Raspberry Pi with Ansible and install Docker + Pi-hole","language":"YAML","stars":152,"topics":["ansible","ansible-playbook","pihole","sync","keepalived","high-availability","docker","raspberry-pi"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"ansible-pihole Bootstrap a Raspberry Pi with Ansible and install Docker + Pi-hole Optionally you can enable HA (high availability) with keepalived and sync settings between multiple instances. The repository contains four Ansible Playbooks. Each one is described below. For more info about the Docker Pi-hole image please check the official repository: https://github.com/pi-hole/docker-pi-hole Base Setup - An Ansible controller machine with Ansible installed (version 2.15 or later) - Necessary collections installed with ansible-galaxy collection install -r requirements.yml - One or more Raspberry Pi's with Raspberry Pi OS Lite (64-bit) (bookworm) - I recommend using the Raspberry Pi Imager for preparing your SD Cards since this easily allows the initial image configuration: - Set username and password - Configure Wireless LAN - Enable SSH (preferably use the option “Allow public-key authentication only”) - Set static IPs for your Raspberry Pi's (static DHCP assignment/reservation in your Router/DHCP server is sufficient) - Configure your hosts (IPs and user of your Raspberry Pi's) and other settings in the inventory.yaml bootstrap-pihole.yaml This playbook is for the first time run (but it can be rerun any time). It will bootstrap a fresh Raspberry Pi OS installation, install Docker, and Pi-hole. You can run it with: ansible-playbook -i inventory.yaml bootstrap-pihole.yaml If the playbook fails during the first run while installing Docker, please reboot your Pi and re-run the p","default_branch":null,"files":null,"tree":[],"storefront":"/r/shaderecker","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/shaderecker/ansible-pihole/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."}