This commit is contained in:
3
main.yml
3
main.yml
@@ -129,3 +129,6 @@
|
|||||||
- name: Deploy Frigate
|
- name: Deploy Frigate
|
||||||
import_tasks: tasks/frigate.yml
|
import_tasks: tasks/frigate.yml
|
||||||
tags: frigate_deploy
|
tags: frigate_deploy
|
||||||
|
- name: Deploy Ersatz
|
||||||
|
import_tasks: tasks/ersatztv.yml
|
||||||
|
tags: ersatztv_deploy
|
||||||
|
|||||||
29
tasks/ersatztv.yml
Normal file
29
tasks/ersatztv.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
- name: Create folder structure
|
||||||
|
file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
with_items:
|
||||||
|
- "{{ data_dir }}/ersatz"
|
||||||
|
|
||||||
|
- name: Pull latest Docker Image
|
||||||
|
docker_image:
|
||||||
|
name: ghcr.io/ersatztv/ersatztv
|
||||||
|
tag: latest
|
||||||
|
source: pull
|
||||||
|
|
||||||
|
- name: Create Docker Container
|
||||||
|
docker_container:
|
||||||
|
name: ersatztv
|
||||||
|
image: ghcr.io/ersatztv/ersatztv:latest
|
||||||
|
recreate: true
|
||||||
|
restart_policy: unless-stopped
|
||||||
|
mounts:
|
||||||
|
- type: tmpfs
|
||||||
|
target: /transcode
|
||||||
|
tmpfs_size: 5G
|
||||||
|
volumes:
|
||||||
|
- "{{ data_dir }}/ersatz:/config"
|
||||||
|
- "{{ media_path }}:{{ media_path }}:ro"
|
||||||
|
published_ports:
|
||||||
|
- "8409:8409"
|
||||||
Reference in New Issue
Block a user