--- - name: Create Lidarr Directory file: path: "{{ lidarr_data_directory }}" state: directory - name: Lidarr Docker Container docker_container: name: lidarr image: linuxserver/lidarr pull: true volumes: - "{{ lidarr_music_directory }}:/music:rw" - "{{ lidarr_downloads_directory }}:/downloads:rw" - "{{ lidarr_data_directory }}:/config:rw" ports: - "{{ lidarr_port }}:8686" env: TZ: "{{ ansible_nas_timezone }}" PUID: "{{ lidarr_user_id }}" PGID: "{{ lidarr_group_id }}" restart_policy: unless-stopped memory: "{{ lidarr_memory }}" labels: traefik.enable: "{{ lidarr_available_externally }}" traefik.http.routers.lidarr.rule: "Host(`{{ lidarr_hostname }}.{{ ansible_nas_domain }}`)" traefik.http.routers.lidarr.tls.certresolver: "letsencrypt" traefik.http.routers.lidarr.tls.domains[0].main: "{{ ansible_nas_domain }}" traefik.http.routers.lidarr.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" traefik.http.services.lidarr.loadbalancer.server.port: "8686"