Added tag for backup

add pihole on aya01

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
pull/1/head
TuDatTr 2022-12-08 23:54:31 +01:00
parent 271a596004
commit cbb3bfd854
5 changed files with 46 additions and 6 deletions

View File

@ -4,6 +4,8 @@
gather_facts: yes
roles:
- role: common
# - role: backblaze
- role: backblaze
tags:
- backup
- role: power_management
- role: docker

8
pi.yml
View File

@ -3,7 +3,9 @@
hosts: raspberry
gather_facts: yes
roles:
- common
# - backblaze
- docker
- role: common
- role: backblaze
tags:
- backup
- role: docker

View File

@ -5,3 +5,5 @@
when: item.0.key == inventory_hostname
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"
become: true
tags:
- backup

View File

@ -45,6 +45,39 @@ services:
- "MAX_LOG_SIZE_BYTES=1000000"
- "MAX_LOG_NUMBER=20"
- "TZ=Europe/Berlin"
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
networks:
net: {}
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8089:80/tcp"
environment:
- "WEBPASSWORD={{ vault_aya01_pihole_password }}"
- "ServerIP=192.168.20.12"
- "INTERFACE=eth0"
- "DNS1=1.1.1.1"
- "DNS1=1.0.0.1"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "{{ pihole_pihole }}:/etc/pihole/"
- "{{ pihole_dnsmasq }}:/etc/dnsmasq.d/"
dns:
- 127.0.0.1
- 1.1.1.1
cap_add:
- NET_ADMIN
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.rule=Host(`pihole.{{local_domain}}`)"
- "traefik.http.routers.pihole.entrypoints=web"
- "traefik.http.services.pihole.loadbalancer.server.port=8089"
networks:
zoneminder:

View File

@ -38,7 +38,8 @@ services:
- "/etc/localtime:/etc/localtime:ro"
- "{{ ha_config }}:/config/"
privileged: true
network_mode: host
ports:
- 8123:8123
labels:
- "traefik.enable=true"
- "traefik.http.routers.homeassistant.rule=Host(`hass.{{local_domain}}`)"
@ -56,7 +57,7 @@ services:
- "67:67/udp"
- "8089:80/tcp"
environment:
- "WEBPASSWORD={{ vault_pihole_password }}"
- "WEBPASSWORD={{ vault_pi_pihole_password }}"
- "ServerIP=192.168.20.11"
- "INTERFACE=eth0"
- "DNS1=1.1.1.1"