Optimized setup procedure in preparation for automatic keycloak realm import

This commit is contained in:
2025-02-18 15:07:09 +01:00
parent 671448dbfc
commit e87c3e2090
7 changed files with 17 additions and 14 deletions

View File

@@ -44,17 +44,17 @@
- name: wait for database
pause:
seconds: "{{pause_duration}}"
when: mode_setup | bool
when: appplications.bigbluebutton.setup | bool
- name: create admin
command:
cmd: docker compose exec greenlight bundle exec rake admin:create
chdir: "{{docker_compose.directories.instance}}"
when: mode_setup | bool
when: appplications.bigbluebutton.setup | bool
ignore_errors: true
register: admin_creation_result
- name: print admin user data
debug:
msg: "{{ admin_creation_result.stdout }}"
when: mode_setup | bool
when: appplications.bigbluebutton.setup | bool

View File

@@ -26,10 +26,10 @@
- name: flush docker service
meta: flush_handlers
when: mode_setup |bool
when: appplications.listmonk.setup |bool
- name: setup routine for listmonk
command:
cmd: docker compose run -T --rm application sh -c "yes | ./listmonk --install"
chdir: "{{docker_compose.directories.instance}}"
when: mode_setup |bool
when: appplications.listmonk.setup |bool

View File

@@ -17,11 +17,11 @@
- name: flush docker service
meta: flush_handlers
when: mode_setup |bool
when: appplications.mailu.setup |bool
- name: execute database migration
command:
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{primary_domain}} {{mailu_initial_root_password}}"
chdir: "{{docker_compose.directories.instance}}"
ignore_errors: true
when: mode_setup |bool
when: appplications.mailu.setup |bool

View File

@@ -14,10 +14,10 @@
- name: flush docker service
meta: flush_handlers
when: mode_setup |bool
when: appplications.mastodon.setup |bool
- name: setup routine for mastodon
command:
cmd: "docker-compose run --rm web bundle exec rails db:migrate"
chdir: "{{docker_compose.directories.instance}}"
when: mode_setup |bool
when: appplications.mastodon.setup |bool

View File

@@ -136,11 +136,11 @@
cmd: docker compose exec -it synapse register_new_matrix_user -u {{applications.matrix.administrator_username}} -p {{matrix_admin_password}} -a -c /data/homeserver.yaml http://localhost:8008
chdir: "{{ docker_compose.directories.instance }}"
ignore_errors: true
when: mode_setup | bool
when: appplications.matrix.setup | bool
- name: create chatgpt bot
command:
cmd: docker compose exec -it synapse register_new_matrix_user -u chatgptbot -p {{matrix_chatgpt_bridge_user_password}} -a -c /data/homeserver.yaml http://localhost:8008
chdir: "{{ docker_compose.directories.instance }}"
ignore_errors: true
when: mode_setup | bool
when: appplications.matrix.setup | bool