chore: update for lidarr

This commit is contained in:
2025-10-12 00:03:05 +10:00
parent 16b35cbfd3
commit 48aefdefa8

View File

@@ -1,22 +1,23 @@
--- ---
- name: Set Facts
set_fact:
container_name: 'lidarr'
- name: Create directories - name: Create directories
file: file:
path: "{{ item }}" path: "{{ item }}"
state: directory state: directory
with_items: with_items:
- "{{ data_folder }}/lidarr" - "/data/lidarr"
- "{{ data_folder }}/lidarr/config" - "/data/lidarr/config"
- name: Pull docker image
community.docker.docker_image:
image: ghcr.io/linuxserver/lidarr@sha256:5661b79d7245ec0c196a5a35ac13be44c6d76563d9e5bf855b3ffa3b91160999
source: pull
register: docker_image
- name: Create the lidarr container - name: Create the lidarr container
docker_container: docker_container:
name: lidarr name: lidarr
image: ghcr.io/linuxserver/lidarr:latest@sha256:5661b79d7245ec0c196a5a35ac13be44c6d76563d9e5bf855b3ffa3b91160999 image: "{{ docker_image.image.RepoTags[0] }}"
restart_policy: unless-stopped restart_policy: unless-stopped
recreate: true
networks: networks:
- name: proxy - name: proxy
env: env:
@@ -26,7 +27,7 @@
AUTO_UPDATE: "true" #optional AUTO_UPDATE: "true" #optional
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:lidarr" DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:lidarr"
volumes: volumes:
- "{{ data_folder }}/lidarr/config:/config" - "/data/lidarr/config:/config"
- /mnt/nfs/data:/data - /mnt/nfs/data:/data
labels: labels:
traefik.enable: "true" traefik.enable: "true"
@@ -34,3 +35,5 @@
traefik.http.routers.lidarr.entrypoints: "https" traefik.http.routers.lidarr.entrypoints: "https"
traefik.http.routers.lidarr.tls: "true" traefik.http.routers.lidarr.tls: "true"
traefik.http.services.lidarr.loadbalancer.server.port: "8686" traefik.http.services.lidarr.loadbalancer.server.port: "8686"
when: docker_image.changed
register: container_gotify