summaryrefslogtreecommitdiff
path: root/roles/streaming/handbrake/tasks/main.yml
blob: 3d9d23af6a360b58da78d81166107712709ccffa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- 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

- name: install GPU load monitoring tools
  when: handbrake_enable_hardware_encoding
  apt:
    name:
    - radeontop
    - intel-gpu-tools