2020-12-27 13:22:47 +01:00
|
|
|
---
|
2025-02-04 18:14:37 +01:00
|
|
|
- name: "include docker-central-database"
|
|
|
|
include_role:
|
|
|
|
name: docker-central-database
|
2024-01-02 21:13:34 +01:00
|
|
|
|
2025-02-19 02:00:41 +01:00
|
|
|
- name: "include role nginx-domain-setup for {{application_id}}"
|
|
|
|
include_role:
|
|
|
|
name: nginx-domain-setup
|
2021-01-05 13:25:59 +01:00
|
|
|
vars:
|
2023-12-07 18:54:47 +01:00
|
|
|
nginx_docker_reverse_proxy_extra_configuration: "client_max_body_size 31M;"
|
2020-12-27 16:16:12 +01:00
|
|
|
|
2025-01-21 16:00:57 +01:00
|
|
|
- name: "Include the nginx-docker-cert-deploy role"
|
|
|
|
include_role:
|
|
|
|
name: nginx-docker-cert-deploy
|
2020-12-27 13:22:47 +01:00
|
|
|
|
2025-02-06 23:59:53 +01:00
|
|
|
- name: "copy docker-compose.yml and env file"
|
|
|
|
include_tasks: copy-docker-compose-and-env.yml
|
2021-04-05 12:32:55 +02:00
|
|
|
|
2024-01-05 23:13:46 +01:00
|
|
|
- name: flush docker service
|
|
|
|
meta: flush_handlers
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.mailu.setup |bool
|
2024-01-05 23:13:46 +01:00
|
|
|
|
|
|
|
- name: execute database migration
|
|
|
|
command:
|
2025-01-21 14:09:06 +01:00
|
|
|
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{primary_domain}} {{mailu_initial_root_password}}"
|
2025-02-04 18:14:37 +01:00
|
|
|
chdir: "{{docker_compose.directories.instance}}"
|
2024-01-08 09:41:59 +01:00
|
|
|
ignore_errors: true
|
2025-02-19 03:46:25 +01:00
|
|
|
when: applications.mailu.setup |bool
|