ansible-nas/tasks/sonarr.yml
Craig Jarvis 36e9c46db7 Removed duplicate timezone config for sonarr and radarr
These apps only require one of the two different ways of getting the timezone in to the container
2018-11-16 23:30:14 +11:00

25 lines
608 B
YAML

---
- name: Create Sonarr Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ sonarr_data_directory }}"
- name: Sonarr
docker_container:
name: sonarr
image: linuxserver/sonarr
pull: true
volumes:
- "{{ sonarr_tv_directory }}:/tv:rw"
- "{{ sonarr_download_directory }}/complete:/downloads:rw"
- "{{ sonarr_data_directory }}:/config:rw"
ports:
- "8989:8989"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sonarr_user_id }}"
PGID: "{{ sonarr_group_id }}"
restart_policy: unless-stopped
memory: 1g