---
- include_tasks: utils/once/flag.yml
- name: "π§© load docker and db for {{ application_id }}"
include_role:
name: sys-stk-full
- name: "π Pre-create the shared MCP overlay network (idempotent)"
include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/network/create.yml') }}"
vars:
network_role_id: "{{ application_id }}"
- name: "π Render the Home Assistant configuration (reverse-proxy trust)"
ansible.builtin.include_tasks:
file: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/render_replicated_templates.yml') }}"
vars:
role_templates:
- src: "configuration.yaml.j2"
dest: "{{ HOMEASSISTANT_CONFIG_PATH_HOST }}"
- name: "π Start the hub before talking to its API"
meta: flush_handlers
- name: "π Resolve the hub before talking to it"
ansible.builtin.include_tasks: utils/resolve.yml
- name: "π€ Provision the owner account of the hub"
ansible.builtin.include_tasks: utils/owner.yml
- name: "π Provision the MCP server surface"
ansible.builtin.include_tasks: utils/mcp.yml
when: HOMEASSISTANT_MCP_ENABLED | bool