computer-playbook/roles/docker-bigbluebutton/handlers/main.yml

59 lines
1.7 KiB
YAML
Raw Normal View History

2022-12-02 12:57:15 +01:00
---
2023-04-19 00:03:13 +02:00
- name: create docker-compose.yml for bigbluebutton
command:
cmd: bash ./scripts/generate-compose
2023-12-05 18:45:26 +01:00
chdir: "{{docker_compose_instance_directory}}"
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600
listen: setup bigbluebutton
- name: replace postgres bind mount by volume mount
replace:
path: "{{docker_compose_file}}"
regexp: '\./postgres-data:/var/lib/postgresql/data'
2024-01-13 21:38:02 +01:00
replace: 'database:/var/lib/postgresql/data'
listen: setup bigbluebutton
- name: replace greenlight bind mount by volume mount
replace:
path: "{{docker_compose_file}}"
regexp: '\./greenlight-data:/usr/src/app/storage'
2024-01-13 21:38:02 +01:00
replace: 'greenlight:/usr/src/app/storage'
listen: setup bigbluebutton
- name: add volume to redis
lineinfile:
path: "{{ docker_compose_file }}"
insertafter: "^\\s*redis:"
line: " volumes:\n - redis:/data"
firstmatch: yes
listen: setup bigbluebutton
- name: add volume to coturn
lineinfile:
path: "{{ docker_compose_file }}"
insertafter: "- ./mod/coturn/turnserver.conf:/etc/coturn/turnserver.conf"
line: " - coturn:/var/lib/coturn"
listen: setup bigbluebutton
- name: add volumes to docker compose
blockinfile:
path: "{{docker_compose_file}}"
block: |2
2024-01-13 21:38:02 +01:00
database:
greenlight:
redis:
coturn:
marker: "# {mark} ANSIBLE MANAGED BLOCK FOR VOLUMES"
insertafter: "html5-static:"
listen: setup bigbluebutton
- name: docker compose up bigbluebutton
2022-12-02 12:57:15 +01:00
command:
2023-04-19 00:03:13 +02:00
cmd: docker-compose -p bigbluebutton up -d --force-recreate
2023-12-05 18:45:26 +01:00
chdir: "{{docker_compose_instance_directory}}"
2022-12-02 12:57:15 +01:00
environment:
COMPOSE_HTTP_TIMEOUT: 600
DOCKER_CLIENT_TIMEOUT: 600
listen: setup bigbluebutton