diff --git a/README.md b/README.md index 7f1f5a4..2d4c03f 100644 --- a/README.md +++ b/README.md @@ -14,30 +14,32 @@ Requirements Role Variables -------------- -| Variable | Description | Default | -| --------------------------- | ------------------------------------------------------------------------------- | ------------------ | -| docker_user | The user who is going to manage/run the Docker Compose services | deploy | -| *jitsi_letsencrypt_email* | E-Mail adress used for requesting certificates | Not set | -| jitsi_docker_host_address | | | -| jitsi_enable_letsencrypt | Jitsi will take care of Let's Encrypt certificates | 0 | -| jitsi_exposed_http_port | Exposed container port for HTTP | 8000 | -| jitsi_exposed_https_port | Exposed container port for HTTPS | 8443 | -| jitsi_jibri_recorder_password | Provide a secure password\* | | -| jitsi_jibri_recorder_user | | | -| jitsi_jibri_xmpp_password | | | -| jitsi_jibri_xmpp_user | | | -| jitsi_jicofo_auth_password | | | -| jitsi_jicofo_auth_user | | | -| jitsi_jicofo_component_secret | | | -| jitsi_jigasi_xmpp_password | | | -| jitsi_jigasi_xmpp_user | | | -| jitsi_jvb_auth_password | | | -| jitsi_jvb_auth_user | | | -| jitsi_jvb_stun_servers | | meet-jit-si-turnrelay.jitsi.net:443 | -| jitsi_web_channel_last_n | Performance: Limit video streams to the last N speakers (-1 = unlimited) | 3 | -| jitsi_public_url | The public URL under which Jitsi Meet can be accessed | http://localhost | -| jitsi_timezone | | Europe/Amsterdam | -| jitsi_virtual_host | The virtual host that is e.g. used by Traefik, usually part of the public url | localhost | +| Variable | Description | Default | +| --------------------------- | ------------------------------------------------------------------------------- | ------------------ | +| docker_user | The user who is going to manage/run the Docker Compose services | deploy | +| jitsi_build_latest_image_from_source | Will fetch the master of `jitsi_docker_upstream_repo_url` and build the docker image as sometimes the latest available images in the Docker Hub are too old | yes | +| jitsi_docker_upstream_repo_url | Git repo of docker-jitsi-meet required by `jitsi_build_latest_image_from_source` | https://github.com/jitsi/docker-jitsi-meet.git | +| *jitsi_letsencrypt_email* | E-Mail adress used for requesting certificates | Not set | +| jitsi_docker_host_address | | | +| jitsi_enable_letsencrypt | Jitsi will take care of Let's Encrypt certificates | 0 | +| jitsi_exposed_http_port | Exposed container port for HTTP | 8000 | +| jitsi_exposed_https_port | Exposed container port for HTTPS | 8443 | +| jitsi_jibri_recorder_password | Provide a secure password\* | | +| jitsi_jibri_recorder_user | | | +| jitsi_jibri_xmpp_password | | | +| jitsi_jibri_xmpp_user | | | +| jitsi_jicofo_auth_password | | | +| jitsi_jicofo_auth_user | | | +| jitsi_jicofo_component_secret | | | +| jitsi_jigasi_xmpp_password | | | +| jitsi_jigasi_xmpp_user | | | +| jitsi_jvb_auth_password | | | +| jitsi_jvb_auth_user | | | +| jitsi_jvb_stun_servers | | meet-jit-si-turnrelay.jitsi.net:443 | +| jitsi_web_channel_last_n | Performance: Limit video streams to the last N speakers (-1 = unlimited) | 3 | +| jitsi_public_url | The public URL under which Jitsi Meet can be accessed | http://localhost | +| jitsi_timezone | | Europe/Amsterdam | +| jitsi_virtual_host | The virtual host that is e.g. used by Traefik, usually part of the public url | localhost | \* It is important to provide a dedicated secure password for each service. Generate passwords with e.g. `openssl rand -hex 16` diff --git a/defaults/main.yml b/defaults/main.yml index 3ef7926..ce1295f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -9,4 +9,6 @@ jitsi_virtual_host: localhost jitsi_public_url: http://{{ jitsi_virtual_host }} jitsi_timezone: Europe/Amsterdam jitsi_jvb_stun_servers: meet-jit-si-turnrelay.jitsi.net:443 -jitsi_web_channel_last_n: 3 \ No newline at end of file +jitsi_web_channel_last_n: 3 +jitsi_build_latest_image_from_source: yes +jitsi_docker_upstream_repo_url: https://github.com/jitsi/docker-jitsi-meet.git \ No newline at end of file diff --git a/tasks/main.yml b/tasks/main.yml index 99497bd..392bd87 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,6 +22,20 @@ group: '{{ docker_user }}' tags: config +- name: "Git: Pull latest upstream docker-jitsi-meet sources (master)" + git: + repo: "{{ jitsi_docker_upstream_repo_url }}" + dest: /home/{{ docker_user }}/jitsi/docker-jitsi-meet-src + version: master + register: git_pull_jitsi_docker_upstream_repo + when: jitsi_build_latest_image_from_source == True + +- name: "Build Jitsi Docker images" + shell: + chdir: /home/{{ docker_user }}/jitsi/docker-jitsi-meet-src + cmd: make + when: git_pull_jitsi_docker_upstream_repo.changed + - name: Provide docker-compose.yml template: src: templates/docker-compose.jitsi.yml.j2