Skip to content

An Ansible role to setup Pi-hole in a docker container

Notifications You must be signed in to change notification settings

emielmolenaar/ansible-role-docker-pihole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pi-hole in docker role for Ansible

A simple role for deploying and configuring Pi-hole on your hosts using Ansible.

Usage

This role assumes Docker is running and configured for Ansible on the hosts your are deploying this role on. You might check out Jeff Geerling's Docker role to set this up.

Clone this repo into your roles directory:

$ git clone https://github.com/emielmolenaar/ansible-role-docker-pihole.git roles/docker-container-pihole

And add it to your play's roles:

- hosts: ...
  roles:
    - docker-container-pihole
    - ...

I recommend using a requirements.yml in your roles directory though:

- src: https://github.com/emielmolenaar/ansible-role-docker-pihole.git
  name: docker-container-pihole

Installing the role will require a ansible-galaxy install -r ./roles/requirements.yml -p ./roles from the root directory of your playbook.

About

An Ansible role to setup Pi-hole in a docker container

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published