chore: update for sonarr

This commit is contained in:
2025-10-12 00:41:39 +10:00
parent d4b9f3d1d1
commit 6292834417

View File

@@ -6,13 +6,19 @@
with_items: with_items:
- "/data/sonarr" - "/data/sonarr"
- "/data/sonarr/config" - "/data/sonarr/config"
- name: Pull docker image
community.docker.docker_image:
image: linuxserver/sonarr
tag: 4.0.15
source: pull
register: docker_image
- name: Create the sonarr container - name: Create the sonarr container
docker_container: docker_container:
name: sonarr name: sonarr
image: linuxserver/sonarr:4.0.15 image: "{{ docker_image.image.RepoTags[0] }}"
restart_policy: unless-stopped restart_policy: unless-stopped
recreate: true
networks: networks:
- name: proxy - name: proxy
env: env:
@@ -29,3 +35,5 @@
traefik.http.routers.sonarr.entrypoints: "https" traefik.http.routers.sonarr.entrypoints: "https"
traefik.http.routers.sonarr.tls: "true" traefik.http.routers.sonarr.tls: "true"
traefik.http.services.sonarr.loadbalancer.server.port: "8989" traefik.http.services.sonarr.loadbalancer.server.port: "8989"
when: docker_image.changed
register: container_sonarr