2017-08-28 15:31:54 +00:00
|
|
|
---
|
|
|
|
- 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:
|
|
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
|
|
- "{{ sonarr_tv_directory }}:/tv:rw"
|
2017-08-28 21:10:19 +00:00
|
|
|
- "{{ sonarr_download_directory }}/complete:/downloads:rw"
|
2017-08-28 15:31:54 +00:00
|
|
|
- "{{ sonarr_data_directory }}:/config:rw"
|
|
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
|
|
ports:
|
|
|
|
- "8989:8989"
|
|
|
|
env:
|
|
|
|
PUID: "{{ sonarr_user_id }}"
|
|
|
|
PGID: "{{ sonarr_group_id }}"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
memory: 1g
|