2022-12-02 12:57:15 +01:00
|
|
|
---
|
2024-01-19 15:12:18 +01:00
|
|
|
- name: "include docker/compose/common.yml"
|
|
|
|
include_tasks: docker/compose/common.yml
|
2024-01-03 20:17:55 +01:00
|
|
|
|
2023-12-06 17:59:57 +01:00
|
|
|
- name: "include task certbot-matomo.yml"
|
|
|
|
include_tasks: certbot-matomo.yml
|
2022-12-02 12:57:15 +01:00
|
|
|
|
|
|
|
- name: configure {{domain}}.conf
|
2023-12-12 12:32:35 +01:00
|
|
|
template:
|
|
|
|
src: "nginx-proxy.conf.j2"
|
|
|
|
dest: "{{nginx_servers_directory}}{{domain}}.conf"
|
|
|
|
notify: restart nginx
|
|
|
|
|
|
|
|
- name: configure websocket_upgrade.conf
|
|
|
|
copy:
|
|
|
|
src: "websocket_upgrade.conf"
|
|
|
|
dest: "{{nginx_maps_directory}}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"
|
2023-12-05 18:45:26 +01:00
|
|
|
dest: "{{docker_compose_instance_directory}}"
|
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
|
2023-12-05 18:45:26 +01:00
|
|
|
template: src=env.j2 dest={{docker_compose_instance_directory}}/.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}}"
|
2024-01-13 20:12:39 +01:00
|
|
|
when: mode_setup | bool
|
|
|
|
|
|
|
|
- name: create admin
|
|
|
|
command:
|
|
|
|
cmd: docker compose exec greenlight bundle exec rake admin:create
|
|
|
|
chdir: "{{docker_compose_instance_directory}}"
|
|
|
|
when: mode_setup | bool
|
|
|
|
ignore_errors: true
|
|
|
|
register: admin_creation_result
|
|
|
|
|
|
|
|
- name: print admin user data
|
|
|
|
debug:
|
|
|
|
msg: "{{ admin_creation_result.stdout }}"
|
2024-01-13 21:38:02 +01:00
|
|
|
when: mode_setup | bool
|