Move duplicati to its own role so it can be installed on grimes

This commit is contained in:
Jake Howard 2020-05-25 17:25:58 +01:00
parent b45d399734
commit 851f750948
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 4 additions and 18 deletions

View file

@ -25,6 +25,7 @@
- watchtower
- netdata
- traefik
- duplicati
- hosts: intersect
roles:

View file

@ -12,8 +12,5 @@ services:
- ./restore:/restore
- /:/source:ro
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.duplicati.rule=Host(`duplicati.jakehoward.tech`)"
- "traefik.http.routers.duplicati.tls.certresolver=le"
- "traefik.http.routers.duplicati.middlewares=internal-only@file"
ports:
- 8200:8200

View file

@ -8,7 +8,7 @@
- name: Install duplicati compose file
template:
src: files/duplicati/docker-compose.yml
src: files/docker-compose.yml
dest: /opt/duplicati/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"

View file

@ -1,9 +1,6 @@
- name: Install calibre
include: calibre.yml
- name: Install duplicati
include: duplicati.yml
- name: Install emby
include: emby.yml

View file

@ -1,5 +1,4 @@
internal_hostnames:
- duplicati.jakehoward.tech
- deluge.jakehoward.tech
- speed.jakehoward.tech
- pihole.jakehoward.tech

View file

@ -140,14 +140,6 @@ resource "cloudflare_record" "jakehowardtech_fah" {
ttl = 1
}
resource "cloudflare_record" "jakehowardtech_duplicati" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "duplicati"
value = vultr_server.casey.main_ip
type = "A"
ttl = 1
}
resource "cloudflare_record" "jakehowardtech_deluge" {
zone_id = cloudflare_zone.jakehowardtech.id
name = "deluge"