added ollama role and host
This commit is contained in:
20
roles/ollama/tasks/configure.yml
Normal file
20
roles/ollama/tasks/configure.yml
Normal 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.
|
||||
Reference in New Issue
Block a user