2025-02-04 18:14:37 +01:00
|
|
|
# Docker Routines
|
|
|
|
- name: "include docker-compose role"
|
|
|
|
include_role:
|
|
|
|
name: docker-compose
|
|
|
|
|
|
|
|
# Database Routines
|
|
|
|
- name: "load variables from {{ role_path }}/vars/database.yml for whole play"
|
|
|
|
include_vars: "{{ role_path }}/vars/database.yml"
|
|
|
|
|
2025-02-05 11:44:11 +01:00
|
|
|
# The following env file will just be used from the dedicated mariadb container
|
|
|
|
# and not the central-mariadb-database
|
2025-02-04 18:14:37 +01:00
|
|
|
- name: "create {{database_env}}"
|
|
|
|
template:
|
|
|
|
src: "env/{{database_type}}.env.j2"
|
|
|
|
dest: "{{database_env}}"
|
|
|
|
notify: docker compose project build and setup
|
2025-02-21 05:06:39 +01:00
|
|
|
when: not applications[application_id].database.central_storage | bool
|
2025-02-04 18:14:37 +01:00
|
|
|
|
|
|
|
- name: create central database
|
|
|
|
include_role:
|
2025-02-20 15:09:36 +01:00
|
|
|
name: "docker-{{database_type}}"
|
2025-02-21 05:06:39 +01:00
|
|
|
when: applications[application_id].database.central_storage | bool
|