blob: 75579d89f73745d9455b0d31be0da6379c5c67ef (
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
|
---
- 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
|