summaryrefslogtreecommitdiff
path: root/roles/streaming/player/tasks/main.yml
blob: c55b31c4ab3f0c7cc4daff2e0fe54f5f27d0b4f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: create directories for extra volume mounts
  loop: "{{ player_volume_mounts | dict2items }}"
  loop_control:
    label: "{{ item.key }} ({{ item.value.src }})"
  file:
    path: "{{ item.value.src }}"
    state: directory

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