mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
4033bfb60d
Not all containers can use the TZ as an ENV. Updated the ones that can.
26 lines
No EOL
667 B
YAML
26 lines
No EOL
667 B
YAML
---
|
|
- name: Create Sickrage Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
# mode: 0755
|
|
with_items:
|
|
- "{{ sickrage_config_directory }}"
|
|
|
|
- name: Sickrage Docker Container
|
|
docker_container:
|
|
name: sickrage
|
|
image: linuxserver/sickrage
|
|
pull: true
|
|
volumes:
|
|
- "{{ sickrage_config_directory }}:/config:rw"
|
|
- "{{ sickrage_downloads_directory }}/completed:/downloads:rw"
|
|
- "{{ sickrage_tv_directory }}:/tv:rw"
|
|
ports:
|
|
- "8081:8081"
|
|
env:
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
PUID: "{{ sickrage_user_id }}"
|
|
PGID: "{{ sickrage_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g |