ansible-nas/tasks/couchpotato.yml

27 lines
769 B
YAML
Raw Normal View History

2017-08-28 15:31:54 +00:00
---
- 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:
2017-08-28 21:10:19 +00:00
- "{{ couchpotato_config_directory }}:/config:rw"
- "{{ couchpotato_downloads_directory }}/completed:/downloads:rw"
- "{{ couchpotato_movies_directory }}:/movies:rw"
- "{{ couchpotato_torrents_directory }}:/torrents:rw"
2017-08-28 15:31:54 +00:00
- "/etc/timezone:/etc/timezone:ro"
ports:
- "5050:5050"
env:
PUID: "{{ couchpotato_user_id }}"
PGID: "{{ couchpotato_group_id }}"
restart_policy: unless-stopped
memory: 1g