summaryrefslogtreecommitdiff
path: root/roles/streaming/recorder/tasks/main.yml
blob: ee682b8977b987142b77a43f38c926554eaff55f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: prepare recorder storage volume
  when: recorder_storage is defined
  vars:
    storage_volume: "{{ recorder_storage | combine({'dest': recorder_base_path}) }}"
  include_role:
    name: "storage/{{ recorder_storage.type }}/volume"

- name: create recorder instance directory
  file:
    path: "{{ recorder_base_path }}/{{ recorder_inst_name }}"
    state: directory
    owner: app
    group: app

- name: install pod manifest
  vars:
    kubernetes_standalone_pod:
      name: "recorder-{{ recorder_inst_name }}"
      spec: "{{ lookup('template', 'pod-spec.yml.j2') }}"
  include_role:
    name: kubernetes/standalone/pod