add pihole stack

This commit is contained in:
Pim Kunis 2023-05-10 11:30:20 +02:00
parent 7c640ae576
commit 1b8571a501
5 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,15 @@
- name: Create working directory
file:
path: /srv/pihole
state: directory
- name: Copy Docker stack file
template:
src: "{{ role_path }}/docker-stack.yml.j2"
dest: /srv/pihole/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: pihole
compose:
- /srv/pihole/docker-stack.yml