-
Notifications
You must be signed in to change notification settings - Fork 5
/
adguard.yml
53 lines (48 loc) · 2.05 KB
/
adguard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- hosts: homelab
vars:
application: adguard
docker_network: "{{ networks.iot }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: adguard/adguardhome:v0.107.54
ipv4_address: "{{ docker_network.prefix }}.252"
homepage:
name: AdGuard Home
group: Networking
weight: 585
description: "Ads & tracker blocking DNS server"
href: http://{{ application }}.{{ common_local_tld }}
widget:
username: !vault |
$ANSIBLE_VAULT;1.1;AES256
37346332373363323739336234363830663239373463343131666663336161386234376537616636
3831373934363232346334663933613936393739356666340a313936343862663761653233653638
38333131656162363162356434326537363461616163626135326562366533663732383135376136
6433616262323937630a633064666164343565373331616331356361613230366565633135383066
6563
password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36353339393935333036623832653366316134356262353337343563326663616361636564636234
6362333135383238633539656561396330623031613135390a373966393131383562663031353463
35333038343439346635383532376638623664366663346562316639656264366536646432383836
3635393934356431360a303337333934663963396666363032663966356662626630656432663863
63396466313338383366396234633638326334366636373236336265303461613735
fields: '["queries", "blocked", "latency"]'
volumes:
- "{{ config_directory }}/work:/opt/adguardhome/work"
- "{{ config_directory }}/conf:/opt/adguardhome/conf"
blackbox:
protocol: http
host: "adguard.{{ common_local_tld }}"
path: /login.html