Optimized setup_mode

This commit is contained in:
2024-01-09 12:52:49 +01:00
parent ee1b2e0140
commit 03c04eadf7
5 changed files with 9 additions and 18 deletions

View File

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

View File

@@ -64,11 +64,11 @@
- name: flush docker service
meta: flush_handlers
when: setup | bool
when: mode_setup |bool
- name: execute database migration
command:
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"
chdir: "{{docker_compose_instance_directory}}"
ignore_errors: true
when: setup | bool
when: mode_setup |bool

View File

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