Remove pihole
Internal VPN server is working just perfectly instead
This commit is contained in:
parent
7d61282d19
commit
dd12b795b5
7 changed files with 0 additions and 93 deletions
|
@ -1,9 +1,6 @@
|
|||
[Interface]
|
||||
Address = {{ item.value.ip }}
|
||||
PrivateKey = {{ item.value.private_key }}
|
||||
{% if item.value != wireguard.clients.intersect %}
|
||||
DNS = {{ wireguard.clients.intersect.ip }}
|
||||
{% endif %}
|
||||
|
||||
[Peer]
|
||||
PublicKey = {{ wireguard.server.public_key }}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
localise-queries
|
||||
|
||||
{% for host in internal_hostnames %}
|
||||
host-record={{ host }},{{ wireguard.clients.intersect.ip }}
|
||||
{% endfor %}
|
|
@ -1,22 +0,0 @@
|
|||
version: "2.3"
|
||||
|
||||
services:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:v5.0
|
||||
ports:
|
||||
- "{{ wireguard.clients.intersect.ip }}:53:53/tcp"
|
||||
- "{{ wireguard.clients.intersect.ip }}:53:53/udp"
|
||||
environment:
|
||||
- TZ=Europe/London
|
||||
- VIRTUAL_HOST=pihole.jakehoward.tech
|
||||
volumes:
|
||||
- ./pihole/:/etc/pihole/
|
||||
- ./dnsmasq.d/:/etc/dnsmasq.d/
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.pihole.rule=Host(`pihole.jakehoward.tech`)
|
||||
- traefik.http.routers.pihole.tls.certresolver=le
|
||||
- traefik.http.routers.pihole.middlewares=internal-only@file
|
||||
- traefik.http.services.pihole-pihole.loadbalancer.server.port=80
|
|
@ -19,9 +19,6 @@
|
|||
- name: Install nextcloud
|
||||
include: nextcloud.yml
|
||||
|
||||
- name: Install pihole
|
||||
include: pihole.yml
|
||||
|
||||
- name: Install quassel
|
||||
include: quassel.yml
|
||||
|
||||
|
|
|
@ -1,48 +0,0 @@
|
|||
- name: Include pihole variables
|
||||
include_vars: pihole.yml
|
||||
|
||||
- name: Create pihole directory
|
||||
file:
|
||||
path: /opt/pihole
|
||||
state: directory
|
||||
owner: "{{ docker_user.name }}"
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Install pihole compose file
|
||||
template:
|
||||
src: files/pihole/docker-compose.yml
|
||||
dest: /opt/pihole/docker-compose.yml
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
validate: /usr/bin/docker-compose -f %s config
|
||||
register: compose_file
|
||||
become: true
|
||||
|
||||
- name: Create dnsmasq directory
|
||||
file:
|
||||
path: /opt/pihole/dnsmasq.d/
|
||||
state: directory
|
||||
mode: "{{ docker_compose_directory_mask }}"
|
||||
become: true
|
||||
|
||||
- name: Install dnsmasq hosts config
|
||||
template:
|
||||
src: files/pihole/dnsmasq-vpn.conf
|
||||
dest: /opt/pihole/dnsmasq.d/02-vpn.conf
|
||||
mode: "{{ docker_compose_file_mask }}"
|
||||
owner: "{{ docker_user.name }}"
|
||||
register: dnsmasq_vpn_hosts
|
||||
become: true
|
||||
|
||||
- name: Cycle pihole container
|
||||
docker_compose:
|
||||
project_src: /opt/pihole
|
||||
pull: true
|
||||
remove_orphans: true
|
||||
remove_volumes: true
|
||||
state: "{{ item }}"
|
||||
when: compose_file.changed or dnsmasq_vpn_hosts.changed
|
||||
loop:
|
||||
- absent
|
||||
- present
|
|
@ -1,4 +0,0 @@
|
|||
internal_hostnames:
|
||||
- deluge.jakehoward.tech
|
||||
- speed.jakehoward.tech
|
||||
- pihole.jakehoward.tech
|
|
@ -84,14 +84,6 @@ resource "cloudflare_record" "jakehowardtech_quassel" {
|
|||
ttl = 1
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "jakehowardtech_pihole" {
|
||||
zone_id = cloudflare_zone.jakehowardtech.id
|
||||
name = "pihole"
|
||||
value = vultr_server.casey.main_ip
|
||||
type = "A"
|
||||
ttl = 1
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "jakehowardtech_collabora" {
|
||||
zone_id = cloudflare_zone.jakehowardtech.id
|
||||
name = "collabora"
|
||||
|
|
Loading…
Reference in a new issue