---
- include_tasks: utils/once/flag.yml
- name: "π§ set matrix flavor"
ansible.builtin.set_fact:
matrix_flavor: "{{ lookup('config', application_id, 'services.matrix.flavor', 'ansible') }}"
changed_when: false
- name: "β
assert matrix flavor is one of: ansible | compose"
ansible.builtin.assert:
that:
- matrix_flavor in ['ansible', 'compose']
fail_msg: "services.matrix.flavor must be 'ansible' or 'compose' (got '{{ matrix_flavor }}')"
- name: "π Verify the gateway contract for {{ application_id }}"
ansible.builtin.include_tasks: "{{ lookup('path_absolute', 'roles/svc-ai-litellm/tasks/utils/consumer_contract.yml') }}"
when: MATRIX_LITELLM_ENABLED | bool
- name: "π€ dispatch to ansible flavor (matrix-docker-ansible-deploy upstream)"
include_tasks: flavor/ansible/main.yml
when: matrix_flavor == 'ansible'
- name: "π€ dispatch to compose flavor (deprecated; in-repo compose stack)"
include_tasks: flavor/compose/main.yml
when: matrix_flavor == 'compose'