00_core.ymlΒΆ

---
- name: πŸ“¦ install the pi coding agent
  ansible.builtin.command:
    cmd: npm install -g --ignore-scripts {{ agnt_pi_package }}@{{ agnt_pi_version }}
  register: agnt_pi_install
  changed_when: "'added' in agnt_pi_install.stdout or 'changed' in agnt_pi_install.stdout"

- 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: lookup('config', application_id, 'services.litellm.enabled', false) | bool

- name: πŸ”‘ Point the agent at the model gateway
  ansible.builtin.include_tasks: 01_gateway.yml
  when: agnt_pi_configured | bool

- include_tasks: utils/once/flag.yml