system-config/playbooks/roles/jitsi-meet/tasks/main.yaml
Clark Boylan eb22e01f31 Add support for multiple jvbs behind meetpad
The jitsi video bridge (jvb) appears to be the main component we'll need
to scale up to handle more users on meetpad. Start preliminary
ansiblification of scale out jvb hosts.

Note this requires each new jvb to run on a separate host as the jvb
docker images seem to rely on $HOSTNAME to uniquely identify each jvb.

Change-Id: If6d055b6ec163d4a9d912bee9a9912f5a7b58125
2020-05-20 13:41:30 -07:00

54 lines
1.3 KiB
YAML

- name: Create docker-compose dir
file:
name: /etc/jitsi-meet-docker
state: directory
mode: 0755
owner: root
group: root
- name: Copy docker-compose config
copy:
src: "jitsi-meet-docker/{{ docker_compose_file }}"
dest: /etc/jitsi-meet-docker/docker-compose.yaml
mode: 0644
owner: root
group: root
- name: Write env file
template:
src: "{{ docker_compose_env_file }}"
dest: /etc/jitsi-meet-docker/.env
- name: Ensure jitsi-meet volume directories exist
file:
state: directory
path: "/var/jitsi-meet/{{ item }}"
loop:
- web
- web/nginx
- web/nginx/site-confs
- name: Write web config
copy:
src: config.js
dest: /var/jitsi-meet/web/config.js
- name: Write interface config
copy:
src: interface_config.js
dest: /var/jitsi-meet/web/interface_config.js
- name: Write nginx site config
copy:
src: default.conf
dest: /var/jitsi-meet/web/nginx/site-confs/default
- name: Write nginx meet config
copy:
src: meet.conf
dest: /var/jitsi-meet/web/nginx/meet.conf
- name: Run docker-compose pull
shell:
cmd: docker-compose pull
chdir: /etc/jitsi-meet-docker/
- name: Run docker-compose up
shell:
cmd: docker-compose up -d
chdir: /etc/jitsi-meet-docker/
- name: Run docker prune to cleanup unneeded images
shell:
cmd: docker image prune -f