Pihole autoinstall using Ansible

I am new to Pi-hole, and please suggest what the issues in with this playbook and what things are not required.
Why did I create this?

I had an issue with the SD card in my Raspberry Pi, and recreating pihole environment took good amount of time. Hence I felt it might be good to have this sort of automation

  • I will drop those optimization kernel parameter settings
  • Drop unbound
  • Drop logrotate
  • Adding RPM, another package manager, is not an issue. I just want to explicitly make this playbook only for Debian-based systems.
  • Regarding nftable - I will provide the port number in the vars so that the user can set the port number

In case you want me to add or drop something, please do let me know. I will change the playbook accordingly.
But I strongly feel that having some sort of automation is very useful, and storing configuration in a central repo makes a lot of difference when debugging and recovering from a crash. Again, it is my humble opinion.