---
- name: "include role for {{ application_id }} to receive certs & do modification routines"
  include_role:
    name: srv-web-7-6-composer

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

- name: configure {{ domain }}.conf
  template: 
    src:  "templates/proxy.conf.j2"
    dest: "{{ NGINX.DIRECTORIES.HTTP.SERVERS }}{{ domain }}.conf"
  notify: restart openresty

- name: "create {{ docker_compose.files.env }}"
  template: 
    src:  "database.j2" 
    dest: "{{ docker_compose.files.env }}"
    mode: "0770"
    force: yes
  notify: docker compose up

