---
- name: "include docker-central-database"
  include_role: 
    name: docker-central-database

- name: "include role nginx-domain-setup for {{application_id}}"
  include_role:
    name: nginx-domain-setup
  vars:
    domain: 	"{{ domains[application_id] }}"
    http_port: 	"{{ ports.localhost.http[application_id] }}"

- name: "include role docker-repository-setup for {{application_id}}"
  include_role: 
    name: docker-repository-setup

- name: "copy templates {{ settings_files }} for taiga-contrib-oidc-auth"
  template:
    src:  "taiga/{{item}}.py.j2"
    dest: "{{ docker_compose.directories.config }}taiga-{{item}}.py"
  when:   applications[application_id].features.oidc and applications[application_id].oidc.flavor == 'taigaio'
  notify: docker compose project build and setup
  loop:   "{{ settings_files }}"

- name: "create {{docker_compose_init}}"
  template:
    src:	"docker-compose-inits.yml.j2"
    dest:	"{{docker_compose_init}}"
  notify: docker compose project build and setup

- name: "copy docker-compose.yml and env file"
  include_tasks: copy-docker-compose-and-env.yml
