Optimized delays

This commit is contained in:
2024-01-06 16:50:31 +01:00
parent 438f63de45
commit b9973dd4bf
4 changed files with 11 additions and 2 deletions

View File

@@ -66,6 +66,14 @@
meta: flush_handlers
when: setup | bool
- name: wait for database
wait_for:
host: 127.0.0.1
port: "{{ http_port }}"
delay: "{{database_delay}}"
timeout: 300
when: setup | bool
- name: execute database migration
command:
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"

View File

@@ -42,7 +42,7 @@
wait_for:
host: 127.0.0.1
port: 3306
delay: 10
delay: "{{database_delay}}"
timeout: 300
when: run_once_docker_mariadb is not defined

View File

@@ -31,7 +31,7 @@
wait_for:
host: "127.0.0.1"
port: "5432"
delay: 0
delay: "{{database_delay}}"
timeout: 300
when: run_once_docker_postgres is not defined