# 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”

# The following env file will just be used from the dedicated mariadb container # and not the central-mariadb-database - name: “create {{database_env}}”

template:

src: “env/{{database_type}}.env.j2” dest: “{{database_env}}”

notify: docker compose project build and setup when: not applications[application_id].database.central_storage | bool

  • name: create central database include_role:

    name: “docker-{{database_type}}”

    when: applications[application_id].database.central_storage | bool