blob: 66644f8f538e81fe56796a5ce8617ab4a7766d48 (
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
33
34
35
36
37
38
|
---
- name: create jitsi-meet scripts subdirectories
loop:
- jicofo
- prosody
- web
- jvb
file:
path: "{{ jitsi_meet_base_path }}/{{ jitsi_meet_inst_name }}/scripts/{{ item }}"
state: directory
- name: generate prosody cont-init.d script
copy:
content: |
#!/usr/bin/with-contenv bash
sed -e 's#^\(component_interface\s*=\)#-- \1#g' -i /config/prosody.cfg.lua
dest: "{{ jitsi_meet_base_path }}/{{ jitsi_meet_inst_name }}/scripts/prosody/cont-init.sh"
mode: 0755
- name: generate pod manifests
template:
src: "pod.yml.j2"
dest: "/etc/kubernetes/manifests/jitsi-meet-{{ jitsi_meet_inst_name }}.yml"
mode: 0600
## TODO: https://github.com/jitsi/jitsi-meet/blob/master/doc/turn.md
- name: configure nginx vhost
vars:
nginx_vhost:
name: "jitsi-meet-{{ jitsi_meet_inst_name }}"
template: generic-proxy-no-buffering-with-acme
acme: true
hostnames: "{{ jitsi_meet_hostnames }}"
client_max_body_size: "0"
proxy_pass: "http://127.0.0.1:{{ jitsi_meet_http_port }}"
include_role:
name: nginx/vhost
|