---
- 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: "{{ LISTMONK_MCP_INSTANCE_DIR }}"
when: LISTMONK_MCP_ENABLED | bool
- name: "π§© load docker, db and proxy for {{ application_id }}"
include_role:
name: sys-stk-full
vars:
compose_handlers_flush: false
webserver_extra_configuration: >-
{% if not LISTMONK_PUBLIC_API_ENABLED | bool %}
{{ lookup('file', lookup('path_absolute', 'roles/web-app-listmonk/files/deactivate-public-api.conf')) }}
{% else %}
""
{% endif %}
- name: "π Listmonk manager-side operations (file deploys + container exec)"
include_tasks: 02_manager_ops.yml
when: IS_STACK_HOST | bool
- name: "π Serve MCP from {{ application_id }}"
ansible.builtin.include_tasks: utils/mcp.yml
when: LISTMONK_MCP_ENABLED | bool