From 8004e8a6eb01db695dc6c9f2d03fd4b47b6d22d4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 23 Jul 2022 00:10:08 +0200 Subject: add role streaming/handbrake --- roles/streaming/handbrake/tasks/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 roles/streaming/handbrake/tasks/main.yml (limited to 'roles/streaming/handbrake/tasks') diff --git a/roles/streaming/handbrake/tasks/main.yml b/roles/streaming/handbrake/tasks/main.yml new file mode 100644 index 00000000..75579d89 --- /dev/null +++ b/roles/streaming/handbrake/tasks/main.yml @@ -0,0 +1,25 @@ +--- +- name: prepare handbrake storage volume + when: handbrake_storage is defined + vars: + storage_volume: "{{ handbrake_storage | combine({'dest': handbrake_base_path}) }}" + include_role: + name: "storage/{{ handbrake_storage.type }}/volume" + +- name: create handbrake instance directories + loop: + - config + - storage + - watch + - output + file: + path: "{{ handbrake_base_path }}/{{ handbrake_inst_name }}/{{ item }}" + state: directory + +- name: install pod manifest + vars: + kubernetes_standalone_pod: + name: "handbrake-{{ handbrake_inst_name }}" + spec: "{{ lookup('template', 'pod-spec.yml.j2') }}" + include_role: + name: kubernetes/standalone/pod -- cgit v1.2.3