mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 14:11:03 +01:00
53 lines
1.3 KiB
YAML
53 lines
1.3 KiB
YAML
---
|
|
- name: "include docker/compose/common.yml"
|
|
include_tasks: docker/compose/common.yml
|
|
|
|
- name: "include task certbot-matomo.yml"
|
|
include_tasks: certbot-matomo.yml
|
|
|
|
- name: configure {{domain}}.conf
|
|
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"
|
|
notify: restart nginx
|
|
|
|
- name: pull docker repository
|
|
git:
|
|
repo: "https://github.com/bigbluebutton/docker.git"
|
|
dest: "{{docker_compose_instance_directory}}"
|
|
update: yes
|
|
recursive: yes
|
|
version: main
|
|
notify: setup bigbluebutton
|
|
ignore_errors: true
|
|
|
|
- name: deploy .env
|
|
template: src=env.j2 dest={{docker_compose_instance_directory}}/.env
|
|
notify: setup bigbluebutton
|
|
|
|
- name: flush docker service
|
|
meta: flush_handlers
|
|
|
|
- name: wait for database
|
|
pause:
|
|
seconds: "{{pause_duration}}"
|
|
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 }}"
|
|
when: mode_setup | bool |