Added vars wrapper for RDMBS

This commit is contained in:
2025-12-04 10:58:05 +01:00
parent 5999763b4e
commit db68f16e19
2 changed files with 21 additions and 14 deletions

View File

@@ -1,6 +1,10 @@
- include_tasks: 01_core.yml
when: run_once_svc_db_mariadb is not defined
- name: "Initialize database for '{{ database_name }}'" - block:
include_tasks: 02_init.yml - include_tasks: 01_core.yml
when: database_init | bool when: run_once_svc_db_mariadb is not defined
- name: "Initialize database for '{{ database_name }}'"
include_tasks: 02_init.yml
when: database_init | bool
vars:
application_id: svc-db-mariadb

View File

@@ -1,11 +1,14 @@
- include_tasks: 01_core.yml - block:
when: run_once_svc_db_postgres is not defined - include_tasks: 01_core.yml
when: run_once_svc_db_postgres is not defined
- include_tasks: utils/load_handlers.yml
# Necessary because docker handlers are overwritten by condition
vars:
handler_role_name: "docker-compose"
- include_tasks: utils/load_handlers.yml - name: "Initialize database for '{{ database_name }}'"
# Necessary because docker handlers are overwritten by condition include_tasks: 02_init.yml
when: database_init | bool
vars: vars:
handler_role_name: "docker-compose" application_id: svc-db-postgres
- name: "Initialize database for '{{ database_name }}'"
include_tasks: 02_init.yml
when: database_init | bool