added ollama role and host

This commit is contained in:
2026-08-05 11:21:54 +02:00
parent 25593dafa0
commit 6a3a1020db
12 changed files with 171 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
---
# tasks file for roles/ollama
# Installation von Ollama über das offizielle Installationsskript.
- name: ollama | install | download official install script
tags: ollama,install
ansible.builtin.get_url:
url: "{{ ollama_install_script_url }}"
dest: "/tmp/ollama-install.sh"
mode: "0755"
- name: ollama | install | run official install script
tags: ollama,install
# Das Skript installiert das Binary nach /usr/local/bin/ollama.
# 'creates' sorgt für Idempotenz: Bei vorhandenem Binary wird die Ausführung übersprungen.
ansible.builtin.shell:
cmd: "/tmp/ollama-install.sh"
creates: /usr/local/bin/ollama