Added tag for backup
add pihole on aya01 Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>pull/1/head
parent
271a596004
commit
cbb3bfd854
|
@ -4,6 +4,8 @@
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
roles:
|
roles:
|
||||||
- role: common
|
- role: common
|
||||||
# - role: backblaze
|
- role: backblaze
|
||||||
|
tags:
|
||||||
|
- backup
|
||||||
- role: power_management
|
- role: power_management
|
||||||
- role: docker
|
- role: docker
|
||||||
|
|
8
pi.yml
8
pi.yml
|
@ -3,7 +3,9 @@
|
||||||
hosts: raspberry
|
hosts: raspberry
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
roles:
|
roles:
|
||||||
- common
|
- role: common
|
||||||
# - backblaze
|
- role: backblaze
|
||||||
- docker
|
tags:
|
||||||
|
- backup
|
||||||
|
- role: docker
|
||||||
|
|
||||||
|
|
|
@ -5,3 +5,5 @@
|
||||||
when: item.0.key == inventory_hostname
|
when: item.0.key == inventory_hostname
|
||||||
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"
|
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- backup
|
||||||
|
|
|
@ -45,6 +45,39 @@ services:
|
||||||
- "MAX_LOG_SIZE_BYTES=1000000"
|
- "MAX_LOG_SIZE_BYTES=1000000"
|
||||||
- "MAX_LOG_NUMBER=20"
|
- "MAX_LOG_NUMBER=20"
|
||||||
- "TZ=Europe/Berlin"
|
- "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:
|
networks:
|
||||||
zoneminder:
|
zoneminder:
|
||||||
|
|
|
@ -38,7 +38,8 @@ services:
|
||||||
- "/etc/localtime:/etc/localtime:ro"
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "{{ ha_config }}:/config/"
|
- "{{ ha_config }}:/config/"
|
||||||
privileged: true
|
privileged: true
|
||||||
network_mode: host
|
ports:
|
||||||
|
- 8123:8123
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.homeassistant.rule=Host(`hass.{{local_domain}}`)"
|
- "traefik.http.routers.homeassistant.rule=Host(`hass.{{local_domain}}`)"
|
||||||
|
@ -56,7 +57,7 @@ services:
|
||||||
- "67:67/udp"
|
- "67:67/udp"
|
||||||
- "8089:80/tcp"
|
- "8089:80/tcp"
|
||||||
environment:
|
environment:
|
||||||
- "WEBPASSWORD={{ vault_pihole_password }}"
|
- "WEBPASSWORD={{ vault_pi_pihole_password }}"
|
||||||
- "ServerIP=192.168.20.11"
|
- "ServerIP=192.168.20.11"
|
||||||
- "INTERFACE=eth0"
|
- "INTERFACE=eth0"
|
||||||
- "DNS1=1.1.1.1"
|
- "DNS1=1.1.1.1"
|
||||||
|
|
Loading…
Reference in New Issue