mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented the correct setup of the bbb administrator
This commit is contained in:
16
roles/web-app-bigbluebutton/tasks/02_administrator.yml
Normal file
16
roles/web-app-bigbluebutton/tasks/02_administrator.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- block:
|
||||
- name: "Create default admin"
|
||||
command:
|
||||
cmd: docker compose exec greenlight \
|
||||
bundle exec rake admin:create['{{ users.administrator.username | upper }}','{{ users.administrator.email }}','{{ users.administrator.password }}']
|
||||
chdir: "{{ docker_compose.directories.instance }}"
|
||||
register: admin_creation_result
|
||||
# Treat exit codes 0 (created) and 2 (already exists) as success
|
||||
failed_when: admin_creation_result.rc not in [0,2]
|
||||
rescue:
|
||||
- name: "Make existing user administrator"
|
||||
command:
|
||||
cmd: >
|
||||
docker compose exec greenlight
|
||||
bundle exec rake user:set_admin_role['{{ users.administrator.email }}']
|
||||
chdir: "{{ docker_compose.directories.instance }}"
|
Reference in New Issue
Block a user