implement adguard, remove pihole
Some checks failed
Deploy Containers / Prepare (push) Failing after 20s
Some checks failed
Deploy Containers / Prepare (push) Failing after 20s
This commit is contained in:
6
main.yml
6
main.yml
@@ -22,9 +22,6 @@
|
|||||||
- name: Deploy Homebridge
|
- name: Deploy Homebridge
|
||||||
import_tasks: tasks/homebridge.yml
|
import_tasks: tasks/homebridge.yml
|
||||||
tags: homebridge_deploy
|
tags: homebridge_deploy
|
||||||
- name: Deploy PiHole
|
|
||||||
import_tasks: tasks/pihole.yml
|
|
||||||
tags: pihole_deploy
|
|
||||||
- name: Deploy PocketID
|
- name: Deploy PocketID
|
||||||
import_tasks: tasks/pocketid.yml
|
import_tasks: tasks/pocketid.yml
|
||||||
tags: pocketid_deploy
|
tags: pocketid_deploy
|
||||||
@@ -79,6 +76,9 @@
|
|||||||
- name: Deploy Duplicati
|
- name: Deploy Duplicati
|
||||||
import_tasks: tasks/duplicati.yml
|
import_tasks: tasks/duplicati.yml
|
||||||
tags: duplicati_deploy
|
tags: duplicati_deploy
|
||||||
|
- name: Deploy AdGuard Home
|
||||||
|
import_tasks: tasks/adguard.yml
|
||||||
|
tags: adguard_deploy
|
||||||
|
|
||||||
- hosts: jackson
|
- hosts: jackson
|
||||||
|
|
||||||
|
|||||||
27
tasks/adguard.yml
Normal file
27
tasks/adguard.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
- name: Deploy AdGuard Home
|
||||||
|
include_role:
|
||||||
|
name: docker
|
||||||
|
vars:
|
||||||
|
name: adguard
|
||||||
|
directories:
|
||||||
|
- "{{ data_dir }}/adguard"
|
||||||
|
- "{{ data_dir }}/adguard/work"
|
||||||
|
- "{{ data_dir }}/adguard/conf"
|
||||||
|
image:
|
||||||
|
name: adguard/adguardhome
|
||||||
|
tag: latest
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/adguard/work:/opt/adguardhome/work"
|
||||||
|
- "{{ data_dir }}/adguard/conf:/opt/adguardhome/conf"
|
||||||
|
published_ports:
|
||||||
|
- "53:53/tcp"
|
||||||
|
- "53:53/udp"
|
||||||
|
networks:
|
||||||
|
- name: "homelab"
|
||||||
|
labels:
|
||||||
|
traefik.enable: "true"
|
||||||
|
traefik.http.routers.adguard.rule: Host(`ag.fntz.net`)
|
||||||
|
traefik.http.routers.adguard.entrypoints: webSecure
|
||||||
|
traefik.http.routers.adguard.tls.certresolver: letsencrypt
|
||||||
|
traefik.http.services.adguard.loadbalancer.server.port: "80"
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Deploy PiHole
|
|
||||||
include_role:
|
|
||||||
name: docker
|
|
||||||
vars:
|
|
||||||
name: pihole
|
|
||||||
directories:
|
|
||||||
- "{{ data_dir }}/pihole"
|
|
||||||
image:
|
|
||||||
name: pihole/pihole
|
|
||||||
tag: latest
|
|
||||||
published_ports:
|
|
||||||
- "53:53/tcp"
|
|
||||||
- "53:53/udp"
|
|
||||||
networks:
|
|
||||||
- name: homelab
|
|
||||||
volumes:
|
|
||||||
- "{{ data_dir }}/pihole:/etc/pihole"
|
|
||||||
env:
|
|
||||||
FTLCONF_webserver_api_password: "{{ PIHOLE_FTLCONF_WEBSERVER_API_PASSWORD }}"
|
|
||||||
TZ: "{{ TZ }}"
|
|
||||||
labels:
|
|
||||||
traefik.enable: "true"
|
|
||||||
traefik.http.routers.pihole.rule: Host(`pihole.fntz.net`)
|
|
||||||
traefik.http.routers.pihole.entrypoints: webSecure
|
|
||||||
traefik.http.routers.pihole.tls.certresolver: letsencrypt
|
|
||||||
traefik.http.services.pihole.loadbalancer.server.port: "80"
|
|
||||||
Reference in New Issue
Block a user