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,20 @@
---
# tasks file for roles/ollama
# systemd-Override, damit Ollama auf allen Interfaces lauscht (OLLAMA_HOST).
- name: ollama | configure | create systemd override directory
tags: ollama,configure
ansible.builtin.file:
path: /etc/systemd/system/ollama.service.d
state: directory
mode: '0755'
- name: ollama | configure | set OLLAMA_HOST via systemd override
tags: ollama,configure
ansible.builtin.template:
src: ollama-override.conf.j2
dest: /etc/systemd/system/ollama.service.d/override.conf
mode: '0644'
# Der Handler lädt systemd neu und startet den Dienst nur bei Änderungen neu.
notify: Reload systemd and restart Ollama
# Hinweis: Eine Firewall-Konfiguration (z.B. ufw) wird bewusst NICHT vorgenommen.