00_core.ymlΒΆ

---
- include_tasks: utils/once/flag.yml

- name: "πŸ“‚ Include JS routines per network"
  include_tasks: "01_javascript.yml"
  when: IS_STACK_HOST | bool
  loop: "{{ DASHBOARD_INSTANCES }}"
  loop_control:
    loop_var: dashboard_instance
  vars:
    domain: "{{ DASHBOARD_INSTANCE_DOMAIN }}"

- name: "🧩 load docker, proxy for '{{ application_id }}'"
  include_role:
    name: sys-stk-full
  vars:
    compose_handlers_flush: false
    compose_repository_pull: false
    webserver_extra_configuration: "{{ lookup('template', 'nginx/sso.html.conf.j2') }}"

- name: "🌐 Load the port-ui content catalogs from the core translations"
  set_fact:
    dashboard_i18n_content: "{{ lookup('i18n_content', 'role:', 'menu:') }}"
  run_once: true

- name: "🏠 Stack-host side of the dashboard deployment"
  when: IS_STACK_HOST | bool
  block:
    - name: "🌐 Write the port-ui content catalogs into the build context"
      stack_host_files:
        path: "{{ DASHBOARD_I18N_CONTENT_DIR }}"
        documents: "{{ dashboard_i18n_content }}"
      notify:
        - compose-build
        - compose-up
        - container-recreate

    - name: "πŸ‘” Dashboard manager-side operations (file deploys + container exec)"
      include_tasks: 02_manager_ops.yml