mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 00:17:10 +00:00
Add pyload: task yml
This commit is contained in:
parent
1dc48c1016
commit
3d799837ac
1 changed files with 31 additions and 0 deletions
31
tasks/pyload.yml
Normal file
31
tasks/pyload.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
- name: Create pyLoad Directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
# mode: 0755
|
||||
with_items:
|
||||
- "{{ pyload_config_directory }}"
|
||||
- "{{ pyload_download_directory }}"
|
||||
|
||||
- name: pyLoad Docker Container
|
||||
docker_container:
|
||||
name: pyload
|
||||
image: writl/pyload
|
||||
pull: true
|
||||
volumes:
|
||||
- "{{ pyload_config_directory }}:/opt/pyload/pyload-config:rw"
|
||||
- "{{ pyload_download_directory }}:/opt/pyload/Downloads:rw"
|
||||
ports:
|
||||
- "8000:8000"
|
||||
env:
|
||||
TZ: "{{ ansible_nas_timezone }}"
|
||||
UID: "{{ pyload_user_id }}"
|
||||
GID: "{{ pyload_group_id }}"
|
||||
restart_policy: unless-stopped
|
||||
memory: 1g
|
||||
labels:
|
||||
traefik.backend: "pyload"
|
||||
traefik.frontend.rule: "Host:pyload.{{ ansible_nas_domain }}"
|
||||
traefik.enable: "{{ pyload_available_externally }}"
|
||||
traefik.port: "8000"
|
Loading…
Reference in a new issue