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 - watchtower
- netdata - netdata
- traefik - traefik
- duplicati
- hosts: intersect - hosts: intersect
roles: roles:

View file

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

View file

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

View file

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

View file

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

View file

@ -140,14 +140,6 @@ resource "cloudflare_record" "jakehowardtech_fah" {
ttl = 1 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" { resource "cloudflare_record" "jakehowardtech_deluge" {
zone_id = cloudflare_zone.jakehowardtech.id zone_id = cloudflare_zone.jakehowardtech.id
name = "deluge" name = "deluge"