--- - 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: install pod manifest vars: kubernetes_standalone_pod: name: "jitsi-meet-{{ jitsi_meet_inst_name }}" spec: "{{ lookup('template', 'pod-spec.yml.j2') }}" mode: "0600" config_hash_items: - path: "{{ jitsi_meet_base_path }}/{{ jitsi_meet_inst_name }}/scripts/prosody/cont-init.sh" properties: - checksum include_role: name: kubernetes/standalone/pod ## 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_hostname }}" locations: '/': proxy_pass: "http://127.0.0.1:{{ jitsi_meet_http_port }}" extra_directives: |- client_max_body_size 0; include_role: name: nginx/vhost