# Ansible collection for PiHole v6

**URL:** <https://discourse.pi-hole.net/t/ansible-collection-for-pihole-v6/76686>\
**Category:** General\
**Created:** [February 23, 2025, 5:45am UTC](https://discourse.pi-hole.net/t/ansible-collection-for-pihole-v6/76686 "2025-02-23T05:45:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbarbett](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/sbarbett/32/46046_2.png) [@sbarbett](https://discourse.pi-hole.net/u/sbarbett)\
**Post date:** [February 23, 2025, 5:45am UTC](https://discourse.pi-hole.net/t/ansible-collection-for-pihole-v6/76686/1 "2025-02-23T05:45:02Z")

</div>

Here it is on GitHub.]([GitHub - sbarbett/pihole-ansible: Collection of modules and roles for the PiHole v6 API](https://github.com/sbarbett/pihole-ansible))

[Here's a link to Ansible Galaxy.](https://galaxy.ansible.com/ui/repo/published/sbarbett/pihole/)

My main goal has been to automate the syncing and creation of local DNS records on my PiHole instances. Right now, I do all of this manually so whenever I add a new VM or device on my local network, I have to log into both of my PiHoles via the web interface and add the host by hand.

I hope this collection helps others streamline their setup. If you have any ideas or features you'd like to see added, let me know. I'm already planning to add support for Teleporter in the near future.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [March 2, 2025, 5:45am UTC](https://discourse.pi-hole.net/t/ansible-collection-for-pihole-v6/76686/2 "2025-03-02T05:45:50Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
