GraphCanon updated 2w · GitHub synced 2w
Decision brief
deploy-llms-with-ansible
Good fit when
- When you prefer using Ansible to automate the deployment of LLMs on a Debian-based virtual machine equipped with Docker.
- If your environment already has familiarity and reliance on Ansible for configuration management tasks.
Avoid when
- When working in an environment that uses alternative automation tools like Terraform or Chef, as this tool specifically requires Ansible knowledge.
- If the infrastructure does not support or permit the use of Docker for containerizing applications.
- Pricing:
- unknown
- Requirements:
- Requires Docker; Requires Ansible installed and configured on the local machine.; Debian-based VM with SSH access and Docker must be present.
Observed Jul 12, 2026 · Source: enrich:decision_facts
Verify the decision
Maintenance and security
Full trust report- Maintenance
- Dormant (462d since push)
- As of 2w
- Provenance
- Not a fork · Personal account
- As of 2w
- Security (OSV)
- No lockfile
- As of 1mo
Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.
Install
git clone https://github.com/xamey/deploy-llms-with-ansibleSimilar tools
Same-category neighbours. No typed graph edges are catalogued for this tool yet.
Evidence and technical details
Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.
Overview
This repository facilitates the deployment of Large Language Models (LLMs) using Ansible scripts that can deploy either Ollama or llama.cpp on a Debian-based VM with Docker. It ensures security by allowing access only from whitelisted IPs.
Capability facts
No sourced capability facts yet. Facts appear after ingest scans repo manifests (Dockerfile, package.json, MCP configs).
Categories
Compatibility
Sourced claims from the README excerpt - not unsourced marketing copy.
Source: README excerpt (regex_v1, Aug 7, 2026)
The server will be available on port 8080. You can make requests using the OpenAI API specification.Source link
Tags
README
Deploy LLMs with Ansible
Deploy and serve LLMs using either Ollama or llama.cpp on a Debian-based VM. Only whitelisted IPs will be able to request it.
Prerequisites
- Ansible installed on your local machine
- Debian-based VM with Docker installed
- SSH access to the VM
Configuration
Modify the inventory files under ollama or llamacpp folders, depending on which technology you want to use.
Each folder contains an inventory.example.yml file that you can use as a template. Copy the example file to create your own inventory.yml:
# For Ollama
cp ollama/inventory.example.yml ollama/inventory.yml
# For llama.cpp
cp llamacpp/inventory.example.yml llamacpp/inventory.yml
Then modify the inventory.yml file with your specific configuration.
llama.cpp Configuration
Configure the following variables in your inventory file:
ansible_host: The IP address of your VMansible_user: The SSH username for connectionansible_ssh_private_key_file: Path to your SSH private key filemodel_url: URL to the GGUF model fileallowed_ip_for_8080: IP addresses allowed to access the server (port 8080)
Ollama Configuration
Configure the following variables in your inventory file:
ansible_host: The IP address of your VMansible_user: The SSH username for connectionansible_ssh_private_key_file: Path to your SSH private key filemodel_name: The model name as defined in Ollama library (e.g., for Qwen3-0.6B, useqwen3:0.6b)allowed_ip_for_8080: IP addresses allowed to access the server (port 8080)
Deployment
Deploy with Ollama
ansible-playbook -i ollama/inventory.yml ollama/playbook.yml
Deploy with llama.cpp
ansible-playbook -i llamacpp/inventory.yml llamacpp/playbook.yml
API Usage
The server will be available on port 8080. You can make requests using the OpenAI API specification.
Example request:
curl --location 'http://YOUR_VM_IP:8080/v1/chat/completions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer no-key' \
--data '{
"model": "your-model-name",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant"
},
{
"role": "user",
"content": "Hello, how are you?"
}
]
}'
Model Name Specification
The model field in your request must match exactly with the model you deployed:
- for Ollama: use the same value as the
model_namespecified in yourinventory.ymlfile - for llama.cpp: value isn't important
For agents
This page has a .md twin and JSON over the API.