00_core.ymlΒΆ

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

- name: "πŸ”Œ Stage the MCP adapter instance for {{ application_id }}"
  ansible.builtin.include_tasks: "{{ lookup('path_absolute', 'roles/svc-ai-mcp-adapter/tasks/instance.yml') }}"
  vars:
    mcp_adapter_instance_dir: "{{ GITEA_MCP_INSTANCE_DIR }}"
    mcp_adapter_upstream_key: true
  when: GITEA_MCP_ENABLED | bool

- name: "🧩 load docker, db and proxy for {{ application_id }}"
  include_role:
    name: sys-stk-full
  vars:
    compose_handlers_flush: false

- name: "🎨 Stage the corporate design overrides of {{ application_id }}"
  include_tasks: utils/design.yml
  when: GITEA_DESIGN_ENABLED | bool

- name: 🚿 Flush handlers to start the Gitea stack
  meta: flush_handlers

- name: "πŸ‘” Gitea manager-side operations (file deploys + container exec)"
  include_tasks: 01_manager_ops.yml
  when: IS_STACK_HOST | bool