dettonville.llm.vllm_api module – Manage and query vLLM server states via API
Note
This module is part of the dettonville.llm collection (version 2026.8.2).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install dettonville.llm.
To use it in a playbook, specify: dettonville.llm.vllm_api.
New in dettonville.llm 2.20.0
Synopsis
Checks health, models, version, and metrics from a specified vLLM server endpoint.
Parameters
Parameter |
Comments |
|---|---|
Action to perform. Choices:
|
|
Type of HTTP authentication header to use. Choices:
|
|
Optional API token/key for authentication. |
|
Base URL of the vLLM API service. |
|
Whether to use the truststore library. Choices:
|
|
Whether to validate SSL certificates for HTTPS requests. Choices:
|
Examples
- name: Check health of vLLM server
dettonville.llm.vllm_api:
url: "https://vllm.example.com"
action: "health"
- name: List models on vLLM server
dettonville.llm.vllm_api:
url: "https://vllm.example.com"
action: "models"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The target endpoint URL used. Returned: always |
|
Whether any modification or state change occurred. Returned: always |
|
The JSON response dictionary or message returned from the API. Returned: always |