mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 08:30:46 +02:00
Solved bigbluebutton admin creation bug
This commit is contained in:
parent
e8c19b4b84
commit
38de10ba65
@ -1,8 +1,23 @@
|
|||||||
|
- name: "Wait until Greenlight is reachable via Nginx"
|
||||||
|
uri:
|
||||||
|
url: "{{ domains | get_url(application_id, WEB_PROTOCOL) }}"
|
||||||
|
validate_certs: true
|
||||||
|
status_code: 200
|
||||||
|
return_content: true
|
||||||
|
register: greenlight_http
|
||||||
|
until:
|
||||||
|
- greenlight_http.status == 200
|
||||||
|
- "'Greenlight' in greenlight_http.content or 'Sign in' in greenlight_http.content"
|
||||||
|
retries: 30
|
||||||
|
delay: 5
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: "Create default admin"
|
- name: "Create default admin"
|
||||||
command:
|
command:
|
||||||
cmd: docker compose exec greenlight \
|
cmd: >
|
||||||
bundle exec rake admin:create['{{ users.administrator.username | upper }}','{{ users.administrator.email }}','{{ users.administrator.password }}']
|
docker compose exec greenlight
|
||||||
|
bundle exec rake admin:create['{{ users.administrator.username | upper }}','{{ users.administrator.email }}','{{ users.administrator.password }}']
|
||||||
chdir: "{{ docker_compose.directories.instance }}"
|
chdir: "{{ docker_compose.directories.instance }}"
|
||||||
register: admin_creation_result
|
register: admin_creation_result
|
||||||
# Treat exit codes 0 (created) and 2 (already exists) as success
|
# Treat exit codes 0 (created) and 2 (already exists) as success
|
||||||
|
@ -40,24 +40,6 @@
|
|||||||
- name: flush docker service
|
- name: flush docker service
|
||||||
meta: flush_handlers
|
meta: flush_handlers
|
||||||
|
|
||||||
- name: "Get greenlight container name"
|
|
||||||
shell: |
|
|
||||||
docker compose ps -q greenlight
|
|
||||||
args:
|
|
||||||
chdir: "{{ docker_compose.directories.instance }}"
|
|
||||||
register: greenlight_id
|
|
||||||
|
|
||||||
- name: "Wait until BigBlueButton (greenlight) is running"
|
|
||||||
shell: |
|
|
||||||
docker inspect --format='{{'{{'}}.State.Status{{'}}'}}' {{ greenlight_id.stdout }}
|
|
||||||
args:
|
|
||||||
chdir: "{{ docker_compose.directories.instance }}"
|
|
||||||
register: bbb_state
|
|
||||||
until: bbb_state.stdout.strip() == "running"
|
|
||||||
retries: 30
|
|
||||||
delay: 5
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: "Setup administrator"
|
- name: "Setup administrator"
|
||||||
include_tasks: "02_administrator.yml"
|
include_tasks: "02_administrator.yml"
|
||||||
|
|
||||||
|
@ -39,13 +39,13 @@ FSESL_PASSWORD={{applications | get_app_conf(application_id, 'credentials.fsesl_
|
|||||||
|
|
||||||
DOMAIN={{domains | get_domain(application_id)}}
|
DOMAIN={{domains | get_domain(application_id)}}
|
||||||
|
|
||||||
EXTERNAL_IPv4={{networks.internet.ip4}}
|
EXTERNAL_IPv4={{ networks.internet.ip4 }}
|
||||||
# The following line is not tested and could lead to bugs:
|
# The following line is not tested and could lead to bugs:
|
||||||
EXTERNAL_IPv6={{networks.internet.ip6}}
|
EXTERNAL_IPv6={{ networks.internet.ip6 }}
|
||||||
|
|
||||||
# STUN SERVER
|
# STUN SERVER
|
||||||
# stun.freeswitch.org
|
# stun.freeswitch.org
|
||||||
STUN_IP={{networks.internet.ip4}}
|
STUN_IP={{ networks.internet.ip4 }}
|
||||||
STUN_PORT={{ ports.public.stun[application_id] }}
|
STUN_PORT={{ ports.public.stun[application_id] }}
|
||||||
|
|
||||||
# TURN SERVER
|
# TURN SERVER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user