blob: 4631d1b7b62e35fcd444a5ea871374d36abd9d90 (
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
|
---
- name: add group for coturn
group:
name: coturn
gid: "{{ coturn_gid }}"
- name: add user for coturn
user:
name: coturn
uid: "{{ coturn_uid }}"
group: coturn
password: "!"
- name: create coturn config subdirectory
file:
path: "{{ coturn_base_path }}/{{ coturn_realm }}/config"
state: directory
- name: create coturn config
template:
src: turnserver.conf.j2
dest: "{{ coturn_base_path }}/{{ coturn_realm }}/config/turnserver.conf"
group: coturn
mode: 0640
- name: generate pod manifests
template:
src: "pod.yml.j2"
dest: "/etc/kubernetes/manifests/coturn-{{ coturn_realm }}.yml"
mode: 0600
|