---
- name: "load docker, db and proxy for {{ application_id }}"
  include_role: 
    name: cmp-db-docker-proxy

- 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 | get_app_conf(application_id, 'features.oidc', True) and applications | get_app_conf(application_id, 'oidc.flavor', True) == 'taigaio'
  notify: docker compose up
  loop:   "{{ settings_files }}"

- name: "create {{docker_compose_init}}"
  template:
    src:  "docker-compose-inits.yml.j2"
    dest:  "{{docker_compose_init}}"
  notify: docker compose up

