---
- name: "π Resolve {{ application_id }} hosting node + container id"
ansible.builtin.include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/swarm/resolve_host_cid.yml') }}"
vars:
resolve_service_key: "{{ entity_name }}"
resolve_output_prefix: MOODLE_MCP
resolve_compose_cid: "{{ MOODLE_CONTAINER_ADDRESS }}"
- name: "π§© Publish the MCP protocol plugin into the code volume"
ansible.builtin.include_tasks: "{{ role_path }}/tasks/utils/mcp/plugin.yml"
- name: "π Enable web services and mint the MCP bearer"
ansible.builtin.include_tasks: "{{ role_path }}/tasks/utils/mcp/provision.yml"
- name: "π©Ί Verify the MCP endpoint answers that bearer"
ansible.builtin.include_tasks: "{{ role_path }}/tasks/utils/mcp/verify.yml"