Compare commits

...

2 Commits

Author SHA1 Message Date
db38b72373 Removed wait for database 2024-01-08 09:56:37 +01:00
b4f580ddae Optimized mailu setup procedure 2024-01-08 09:41:59 +01:00
3 changed files with 3 additions and 10 deletions

View File

@ -66,16 +66,9 @@
meta: flush_handlers meta: flush_handlers
when: setup | bool 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 - name: execute database migration
command: command:
cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}" cmd: "docker compose -p mailu exec admin flask mailu admin admin {{top_domain}} {{mailu_initial_root_password}}"
chdir: "{{docker_compose_instance_directory}}" chdir: "{{docker_compose_instance_directory}}"
ignore_errors: true
when: setup | bool when: setup | bool

View File

@ -43,7 +43,7 @@
host: 127.0.0.1 host: 127.0.0.1
port: 3306 port: 3306
delay: "{{database_delay}}" delay: "{{database_delay}}"
timeout: 300 timeout: 360
when: run_once_docker_mariadb is not defined when: run_once_docker_mariadb is not defined
- name: "Create database: {{ database_name }}" - name: "Create database: {{ database_name }}"

View File

@ -32,7 +32,7 @@
host: "127.0.0.1" host: "127.0.0.1"
port: "5432" port: "5432"
delay: "{{database_delay}}" delay: "{{database_delay}}"
timeout: 300 timeout: 360
when: run_once_docker_postgres is not defined when: run_once_docker_postgres is not defined
- name: install python-psycopg2 - name: install python-psycopg2