
Ollama role¶
Setup Ollama and deploy models.
Usage¶
Configure the role.
# https://hub.docker.com/r/ollama/ollama
ollama_image: ollama/ollama:0.6.2
ollama_hostname: ollama01
ollama_description: LLM # default: Ollama
ollama_native: true # default: false
ollama_models:
- name: olmo2:13b
- name: olmo2:13b
ollama_api_key: # default: {{ vault_ollama_api_key }}
And include it in your playbook.
Docs¶
Ollama cli¶
List models.
Ollama service¶
Show systemd logs.
Connect LLM cli to remote model¶
Connecting the LLM cli with a hosted model is simple.
Open the command line and export the env vars from the Ansible output.