summaryrefslogtreecommitdiff
path: root/roles/streaming/rtmp/streamer/tasks
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-05 01:59:32 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-05 01:59:32 +0200
commitd6deef93355ed4058c925cdbcec0015c33c99184 (patch)
tree193dc47a752e09280fac506b3c662f6d96b66ad5 /roles/streaming/rtmp/streamer/tasks
parentdeploy final glt recording hosts (diff)
use ffmpeg generic segmenter for rtmp/streamer recording feature as well
Diffstat (limited to 'roles/streaming/rtmp/streamer/tasks')
-rw-r--r--roles/streaming/rtmp/streamer/tasks/main.yml23
1 files changed, 7 insertions, 16 deletions
diff --git a/roles/streaming/rtmp/streamer/tasks/main.yml b/roles/streaming/rtmp/streamer/tasks/main.yml
index c5caf471..1715bdf9 100644
--- a/roles/streaming/rtmp/streamer/tasks/main.yml
+++ b/roles/streaming/rtmp/streamer/tasks/main.yml
@@ -21,21 +21,13 @@
content: "{{ rtmp_streamer_config | combine({'rtmp_base_url': 'rtmp://127.0.0.1/'+rtmp_streamer_app_name}) | to_nice_yaml }}\n"
dest: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/config.yml"
-- name: enable recording
- when: rtmp_streamer_recording_enabled | bool
- block:
- - name: create recording directory
- file:
- path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings"
- state: directory
- owner: app
- group: app
-
- - name: generate recording script
- template:
- src: record.sh.j2
- dest: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/record.sh"
- mode: 0755
+- name: create recording directory
+ when: rtmp_streamer_recording is defined
+ file:
+ path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/recordings"
+ state: directory
+ owner: app
+ group: app
- name: install pod manifest
vars:
@@ -49,6 +41,5 @@
- path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/config.yml"
properties:
- checksum
- ## TODO: add record.sh if recording is enabled
include_role:
name: kubernetes/standalone/pod