From 77b745346f08b4d416706c023e32f9385c2002c3 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Sun, 28 Dec 2025 17:15:44 -0500 Subject: [PATCH] add multi-scrobbler --- main.yml | 6 +++--- tasks/koito.yml | 23 --------------------- tasks/scrobbling.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 26 deletions(-) delete mode 100644 tasks/koito.yml create mode 100644 tasks/scrobbling.yml diff --git a/main.yml b/main.yml index d204069..bf18bdc 100644 --- a/main.yml +++ b/main.yml @@ -64,9 +64,9 @@ - name: Deploy Monitoring import_tasks: tasks/monitoring.yml tags: monitoring_deploy - - name: Deploy Koito - import_tasks: tasks/koito.yml - tags: kotio_deploy + - name: Deploy Scrobbling Setup + import_tasks: tasks/scrobbling.yml + tags: scrobbling_deploy - name: Deploy Duplicati import_tasks: tasks/duplicati.yml tags: duplicati_deploy diff --git a/tasks/koito.yml b/tasks/koito.yml deleted file mode 100644 index 4c0e397..0000000 --- a/tasks/koito.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -- name: Deploy Kotio - include_role: - name: docker - vars: - name: kotio - networks: - - name: kotio - - name: homelab - image: - name: gabehf/koito - tag: latest - env: - KOITO_DATABASE_URL: "postgres://koito:{{ KOTIO_DB_PASS }}@172.16.0.25:5432/koito" - KOITO_ALLOWED_HOSTS: koito.fntz.net - volumes: - - "{{ data_dir }}/koito/app:/etc/koito" - labels: - traefik.enable: "true" - traefik.http.routers.kotio.rule: Host(`koito.fntz.net`) - traefik.http.routers.kotio.entrypoints: webSecure - traefik.http.routers.kotio.tls.certresolver: letsencrypt - traefik.http.services.kotio.loadbalancer.server.port: "4110" diff --git a/tasks/scrobbling.yml b/tasks/scrobbling.yml new file mode 100644 index 0000000..9d23a2e --- /dev/null +++ b/tasks/scrobbling.yml @@ -0,0 +1,48 @@ +--- +- name: Deploy Kotio + include_role: + name: docker + vars: + name: scrobbling_kotio + network_name: scrobbling + directories: + - "{{ data_dir }}/scrobbling" + - "{{ data_dir }}/scrobbling/koito" + - "{{ data_dir }}/scrobbling/multi-scrobbler" + networks: + - name: scrobbling + - name: homelab + image: + name: gabehf/koito + tag: latest + env: + KOITO_DATABASE_URL: "postgres://koito:{{ KOTIO_DB_PASS }}@172.16.0.25:5432/koito" + KOITO_ALLOWED_HOSTS: koito.fntz.net + volumes: + - "{{ data_dir }}/scrobbling/koito:/etc/koito" + labels: + traefik.enable: "true" + traefik.http.routers.kotio.rule: Host(`koito.fntz.net`) + traefik.http.routers.kotio.entrypoints: webSecure + traefik.http.routers.kotio.tls.certresolver: letsencrypt + traefik.http.services.kotio.loadbalancer.server.port: "4110" + +- name: Deploy Multi-Scrobbler + include_role: + name: docker + vars: + name: scrobbling_multi-scrobbler + image: + name: ghcr.io/foxxmd/multi-scrobbler + tag: latest + networks: + - name: scrobbling + - name: homelab + volumes: + - "{{ data_dir }}/scrobbling/multi-scrobbler:/config" + labels: + traefik.enable: "true" + traefik.http.routers.scrobbler.rule: Host(`scrobbler.fntz.net`) + traefik.http.routers.scrobbler.entrypoints: webSecure + traefik.http.routers.scrobbler.tls.certresolver: letsencrypt + traefik.http.services.scrobbler.loadbalancer.server.port: "9078"