ansible-nas/tasks/couchpotato.yml
Craig Jarvis 4033bfb60d Added timezone to the all.yml file. Updated some containers to use it
Not all containers can use the TZ as an ENV. Updated the ones that can.
2018-11-13 09:30:13 +11:00

27 lines
No EOL
767 B
YAML

---
- name: Create Couchpotato Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ docker_home }}/couchpotato/config"
- name: Couchpotato Docker Container
docker_container:
name: couchpotato
image: linuxserver/couchpotato
pull: true
volumes:
- "{{ couchpotato_config_directory }}:/config:rw"
- "{{ couchpotato_downloads_directory }}/completed:/downloads:rw"
- "{{ couchpotato_movies_directory }}:/movies:rw"
- "{{ couchpotato_torrents_directory }}:/torrents:rw"
ports:
- "5050:5050"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ couchpotato_user_id }}"
PGID: "{{ couchpotato_group_id }}"
restart_policy: unless-stopped
memory: 1g