summaryrefslogtreecommitdiff
path: root/roles/streaming/rtmp/streamer/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/streaming/rtmp/streamer/tasks/main.yml')
-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