mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Optimized delays
This commit is contained in:
parent
438f63de45
commit
b9973dd4bf
@ -1,6 +1,7 @@
|
||||
# General
|
||||
reset_files: false # Cleans up all CyMaIS files. It's necessary to run to whole playbook and not particial roles when using this function.
|
||||
verbose: false # Prints well formated debug information
|
||||
database_delay: "0" # Database delay to wait for the central database before continue tasks
|
||||
top_domain: "localhost" # Change this in inventory to your domain
|
||||
ip4_address: "127.0.0.1" # Change thie in inventory to the ip address of your server
|
||||
backups_folder_path: "/Backups/" # Path to the backups folder
|
||||
|
@ -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}}"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user