2022-12-02 12:57:15 +01:00
|
|
|
---
|
2025-01-29 14:20:34 +01:00
|
|
|
- name: "include docker-compose role"
|
|
|
|
include_role:
|
|
|
|
name: docker-compose
|
2024-01-03 20:17:55 +01:00
|
|
|
|
2025-01-30 15:04:23 +01:00
|
|
|
# Leave this in the code until big blue button was working for a while.
|
|
|
|
# This is necessary due to the reason that big blue button wasn't fully tested after refactoring
|
|
|
|
#
|
2025-02-07 13:39:46 +01:00
|
|
|
#- name: "include task certbot-and-globals.yml"
|
|
|
|
# include_tasks: certbot-and-globals.yml
|
2025-01-30 15:04:23 +01:00
|
|
|
#
|
2025-02-21 06:32:12 +01:00
|
|
|
#- name: configure {{domains[application_id]}}.conf
|
2025-01-30 15:04:23 +01:00
|
|
|
# template:
|
|
|
|
# src: "nginx-proxy.conf.j2"
|
2025-02-21 06:32:12 +01:00
|
|
|
# dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
|
2025-01-30 15:04:23 +01:00
|
|
|
# notify: restart nginx
|
2022-12-02 12:57:15 +01:00
|
|
|
|
2025-02-19 02:00:41 +01:00
|
|
|
- name: "include role nginx-domain-setup for {{application_id}}"
|
2025-02-21 05:46:42 +01:00
|
|
|
include_role:
|
2025-02-19 02:00:41 +01:00
|
|
|
name: nginx-domain-setup
|
2025-02-21 05:46:42 +01:00
|
|
|
vars:
|
|
|
|
domain: "{{ domains[application_id] }}"
|
|
|
|
http_port: "{{ ports.localhost.http[application_id] }}"
|
2023-12-12 12:32:35 +01:00
|
|
|
|
|
|
|
- name: configure websocket_upgrade.conf
|
|
|
|
copy:
|
|
|
|
src: "websocket_upgrade.conf"
|
2025-01-31 13:14:07 +01:00
|
|
|
dest: "{{nginx.directories.http.maps}}websocket_upgrade.conf"
|
2022-12-02 12:57:15 +01:00
|
|
|
notify: restart nginx
|
|
|
|
|
|
|
|
- name: pull docker repository
|
|
|
|
git:
|
|
|
|
repo: "https://github.com/bigbluebutton/docker.git"
|
2025-02-04 18:14:37 +01:00
|
|
|
dest: "{{docker_compose.directories.instance}}"
|
2022-12-02 12:57:15 +01:00
|
|
|
update: yes
|
|
|
|
recursive: yes
|
|
|
|
version: main
|
2022-12-02 21:18:55 +01:00
|
|
|
notify: setup bigbluebutton
|
2023-05-28 23:08:38 +02:00
|
|
|
ignore_errors: true
|
|
|
|
|
2022-12-03 20:43:33 +01:00
|
|
|
- name: deploy .env
|
2025-02-04 18:14:37 +01:00
|
|
|
template: src=env.j2 dest={{docker_compose.directories.instance}}/.env
|
2022-12-02 21:18:55 +01:00
|
|
|
notify: setup bigbluebutton
|
2024-01-13 20:12:39 +01:00
|
|
|
|
|
|
|
- name: flush docker service
|
|
|
|
meta: flush_handlers
|
|
|
|
|
|
|
|
- name: wait for database
|
|
|
|
pause:
|
2024-01-15 01:00:59 +01:00
|
|
|
seconds: "{{pause_duration}}"
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.bigbluebutton.setup | bool
|
2024-01-13 20:12:39 +01:00
|
|
|
|
|
|
|
- name: create admin
|
|
|
|
command:
|
|
|
|
cmd: docker compose exec greenlight bundle exec rake admin:create
|
2025-02-04 18:14:37 +01:00
|
|
|
chdir: "{{docker_compose.directories.instance}}"
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.bigbluebutton.setup | bool
|
2024-01-13 20:12:39 +01:00
|
|
|
ignore_errors: true
|
|
|
|
register: admin_creation_result
|
|
|
|
|
|
|
|
- name: print admin user data
|
|
|
|
debug:
|
|
|
|
msg: "{{ admin_creation_result.stdout }}"
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.bigbluebutton.setup | bool
|