| @@ -1,18 +1,24 @@ | |||||
| --- | --- | ||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/sanity_check.yml" | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/system_check.yml" | |||||
| tags: | tags: | ||||
| - always | - always | ||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/sanity_check.yml" | |||||
| tags: | |||||
| - setup-all | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/clean_up_old_files.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/clean_up_old_files.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-additional-jvb | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/server_base/setup.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/server_base/setup.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-additional-jvb | |||||
| # This needs to always run, because it populates `matrix_user_uid` and `matrix_user_gid`, | # This needs to always run, because it populates `matrix_user_uid` and `matrix_user_gid`, | ||||
| # which are required by many other roles. | # which are required by many other roles. | ||||
| @@ -21,11 +27,13 @@ | |||||
| tags: | tags: | ||||
| - always | - always | ||||
| - setup-system-user | - setup-system-user | ||||
| - setup-additional-jvb | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-additional-jvb | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_well_known.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_well_known.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| @@ -189,6 +189,8 @@ matrix_jitsi_prosody_systemd_required_services_list: ['docker.service'] | |||||
| # Neccessary Port binding for those disabling the integrated nginx proxy | # Neccessary Port binding for those disabling the integrated nginx proxy | ||||
| matrix_jitsi_prosody_container_http_host_bind_port: '' | matrix_jitsi_prosody_container_http_host_bind_port: '' | ||||
| matrix_jitsi_prosody_container_jvb_host_bind_port: 5222 | |||||
| matrix_jitsi_jicofo_docker_image: "{{ matrix_container_global_registry_prefix }}jitsi/jicofo:{{ matrix_jitsi_container_image_tag }}" | matrix_jitsi_jicofo_docker_image: "{{ matrix_container_global_registry_prefix }}jitsi/jicofo:{{ matrix_jitsi_container_image_tag }}" | ||||
| matrix_jitsi_jicofo_docker_image_force_pull: "{{ matrix_jitsi_jicofo_docker_image.endswith(':latest') }}" | matrix_jitsi_jicofo_docker_image_force_pull: "{{ matrix_jitsi_jicofo_docker_image.endswith(':latest') }}" | ||||
| @@ -215,7 +217,7 @@ matrix_jitsi_jvb_config_path: "{{ matrix_jitsi_jvb_base_path }}/config" | |||||
| matrix_jitsi_jvb_container_extra_arguments: [] | matrix_jitsi_jvb_container_extra_arguments: [] | ||||
| # List of systemd services that matrix-jitsi-jvb.service depends on | # List of systemd services that matrix-jitsi-jvb.service depends on | ||||
| matrix_jitsi_jvb_systemd_required_services_list: ['docker.service', 'matrix-jitsi-prosody.service'] | |||||
| matrix_jitsi_jvb_systemd_required_services_list: ['docker.service'] | |||||
| matrix_jitsi_jvb_auth_user: jvb | matrix_jitsi_jvb_auth_user: jvb | ||||
| matrix_jitsi_jvb_auth_password: '' | matrix_jitsi_jvb_auth_password: '' | ||||
| @@ -9,12 +9,14 @@ | |||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-jitsi | - setup-jitsi | ||||
| - setup-additional-jvb | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_jitsi_base.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_jitsi_base.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-jitsi | - setup-jitsi | ||||
| - setup-additional-jvb | |||||
| - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_jitsi_web.yml" | - ansible.builtin.import_tasks: "{{ role_path }}/tasks/setup_jitsi_web.yml" | ||||
| when: run_setup | bool | when: run_setup | bool | ||||
| @@ -39,3 +41,4 @@ | |||||
| tags: | tags: | ||||
| - setup-all | - setup-all | ||||
| - setup-jitsi | - setup-jitsi | ||||
| - setup-additional-jvb | |||||
| @@ -20,6 +20,9 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-jitsi-prosody | |||||
| {% if matrix_jitsi_prosody_container_http_host_bind_port %} | {% if matrix_jitsi_prosody_container_http_host_bind_port %} | ||||
| -p {{ matrix_jitsi_prosody_container_http_host_bind_port }}:5280 \ | -p {{ matrix_jitsi_prosody_container_http_host_bind_port }}:5280 \ | ||||
| {% endif %} | {% endif %} | ||||
| {% if matrix_jitsi_prosodymatrix_jitsi_prosody_container_jvb_host_bind_port_container_http_host_bind_port %} | |||||
| -p {{ matrix_jitsi_prosody_matrix_jitsi_prosody_container_jvb_host_bind_portcontainer_http_host_bind_port }}:5222 \ | |||||
| {% endif %} | |||||
| --env-file={{ matrix_jitsi_prosody_base_path }}/env \ | --env-file={{ matrix_jitsi_prosody_base_path }}/env \ | ||||
| --mount type=bind,src={{ matrix_jitsi_prosody_config_path }},dst=/config \ | --mount type=bind,src={{ matrix_jitsi_prosody_config_path }},dst=/config \ | ||||
| --mount type=bind,src={{ matrix_jitsi_prosody_plugins_path }},dst=/prosody-plugins-custom \ | --mount type=bind,src={{ matrix_jitsi_prosody_plugins_path }},dst=/prosody-plugins-custom \ | ||||
| @@ -73,3 +73,12 @@ | |||||
| - matrix-postgres-backup | - matrix-postgres-backup | ||||
| - matrix-backup-borg | - matrix-backup-borg | ||||
| - matrix-common-after | - matrix-common-after | ||||
| - name: "Set up additional Jitsi JVB servers" | |||||
| hosts: "jvb_servers" | |||||
| become: true | |||||
| roles: | |||||
| - matrix-base | |||||
| - matrix-jitsi | |||||