diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-05-29 01:32:33 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-05-29 01:32:33 +0200 |
commit | 9714f9dfa1eea2264e8b6a02cd7e7d1a123e4730 (patch) | |
tree | 9424cd34097ca4576bbb4a11b93fa5c8ec71e602 /roles/streaming/rtmp/streamer/tasks | |
parent | rtmp/streamer: move to new encoding scripts (diff) |
rename role rtmp/streamer to streamer/rtmp
Diffstat (limited to 'roles/streaming/rtmp/streamer/tasks')
-rw-r--r-- | roles/streaming/rtmp/streamer/tasks/main.yml | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/roles/streaming/rtmp/streamer/tasks/main.yml b/roles/streaming/rtmp/streamer/tasks/main.yml deleted file mode 100644 index bb50846c..00000000 --- a/roles/streaming/rtmp/streamer/tasks/main.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -- name: prepare rtmp-streamer storage volume - when: rtmp_streamer_storage is defined - vars: - storage_volume: "{{ rtmp_streamer_storage | combine({'dest': rtmp_streamer_base_path}) }}" - include_role: - name: "storage/{{ rtmp_streamer_storage.type }}/volume" - -- name: create rtmp-streamer instance directory - file: - path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}" - state: directory - -- name: generate nginx config - template: - src: nginx.conf.j2 - dest: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/nginx.conf" - -- name: generate streamer config - copy: - 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: 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: - kubernetes_standalone_pod: - name: "rtmp-streamer-{{ rtmp_streamer_inst_name }}" - spec: "{{ lookup('template', 'pod-spec.yml.j2') }}" - config_hash_items: - - path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/nginx.conf" - properties: - - checksum - - path: "{{ rtmp_streamer_base_path }}/{{ rtmp_streamer_inst_name }}/config.yml" - properties: - - checksum - include_role: - name: kubernetes/standalone/pod |