Coder Social home page Coder Social logo

ansible-pihole's Introduction

ansible-pihole

Ansible playbook for deploying pihole in docker, along with supporting services. This is work in progress.

To install dependencies, run:

ansible-galaxy install -r requirements.yml && ansible-galaxy collection install -r requirements.yml

To run the playbook:

  1. Copy the inventory.yml.example file to inventory.yml, and modify it to reflect the hosts you want to install on. (How to build your inventory - Asible Docs)
  2. Copy the vars.default.yml file to vars.yml, and change the variables to reflect your own setup preferences.
  3. Run ansible-playbook main.yml -i inventory -K to run the playbook.

What the playbook will do:

  1. Install docker and docker-compose (also ensure the user is added to the docker group)
  2. Updates the host to disable the DNSStubResolver of systemd-resolved
  3. Installs pihole using a compose file
  4. [Optional] Installs pihole-node-exporter using a compose file, and sets it up to gather info from the pihole instance
  5. [Optional] Installs portainer-agent
  6. [Optional] Registers the portainer agent to a portainer instance
  7. [Optional] Install prometheus-node-exporter

ansible-pihole's People

Contributors

robert-sandor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.