mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-30 15:28:12 +02:00
Different little optimations
This commit is contained in:
@@ -41,9 +41,8 @@
|
||||
name: "{{ mariadb_name }}"
|
||||
register: db_info
|
||||
until:
|
||||
- db_info.containers is defined
|
||||
- db_info.containers | length > 0
|
||||
- db_info.containers[0].State.Health.Status == "healthy"
|
||||
- db_info.container is defined
|
||||
- db_info.container.State.Health.Status == "healthy"
|
||||
retries: 30
|
||||
delay: 5
|
||||
when:
|
||||
|
@@ -2,7 +2,7 @@ application_id: svc-db-mariadb
|
||||
mariadb_root_pwd: "{{ applications | get_app_conf(application_id,'credentials.root_password', True) }}"
|
||||
mariadb_init: "{{ database_username is defined and database_password is defined and database_name is defined }}"
|
||||
mariadb_subnet: "{{ networks.local['svc-db-mariadb'].subnet }}"
|
||||
mariadb_network_name: "{{ applications | get_app_conf(application_id,'network', True) }}"
|
||||
mariadb_network_name: "{{ applications | get_app_conf(application_id,'docker.network', True) }}"
|
||||
mariadb_volume: "{{ applications | get_app_conf(application_id,'docker.volumes.data', True) }}"
|
||||
mariadb_image: "{{ applications | get_app_conf(application_id,'docker.services.mariadb.image','mariadb', True) }}"
|
||||
mariadb_version: "{{ applications | get_app_conf(application_id,'docker.services.mariadb.version', True) }}"
|
||||
|
Reference in New Issue
Block a user