21 lines
748 B
YAML
21 lines
748 B
YAML
---
|
|
# 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.
|