deploy-llms-with-ansible
FreeEasily deploy any LLM on a VM with minimal configuration, using Ansible.
About deploy-llms-with-ansible
deploy-llms-with-ansible is an open-source project that automates the deployment and serving of large language models (LLMs) on Debian-based virtual machines using Ansible. It supports two popular backends: Ollama and llama.cpp, each running inside Docker containers for isolation and ease of management. The deployment is secured via IP whitelisting, and the served model provides an OpenAI-compatible API endpoint on port 8080. Configuration is minimal—users define variables such as the model URL (for llama.cpp) or model name (for Ollama), SSH credentials, and allowed IPs in an inventory file. With a single Ansible playbook command, the tool sets up the chosen backend, pulls the model, and exposes it for chat completions.
Key Features
Pros & Cons
- Straightforward setup with Ansible automation
- Supports two of the most popular open-source LLM backends
- Built-in security via IP whitelisting
- OpenAI-compatible API simplifies client integration
- Fully open source and customizable
- Uses Docker for consistent runtime environment
- Limited to Debian-based VMs with Docker pre-installed
- Requires manual configuration of inventory files
- Only supports GGUF models (llama.cpp) or models from Ollama library
- No built-in support for model versioning, scaling, or load balancing
- Lacks a graphical interface or dashboard for management