974486bc53
Remove the Clay role (Claude Code web UI) and its Anthropic API key. New roles: - ollama: local CPU LLM (qwen3:4b-instruct), internal network only - browserless: headless Chromium for JavaScript-heavy pages - searxng: metasearch backend for the chat web_search tool - n8n at agent.ladkau.de: web chat (/chat), scheduled workflows, Telegram bot; workflows and credentials are imported from the repo Telegram bot: Gemini 3.8 -> Gemini 3.5 -> local Qwen fallback chain, /qwen to force the local model, /stocks and a weekday schedule (07:30, 13:00, 17:40) for the MTE.DE / PTX.F stock report. Also: dashboard and check-services entries for the chat, vault checks for the new secrets (n8n, SearXNG, Gemini, Telegram, SMTP), updated CLAUDE.md, runbooks and README.
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
---
|
|
- name: Create Ollama directories
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
loop:
|
|
- "{{ ollama_data_dir }}"
|
|
- "{{ ollama_data_dir }}/models"
|
|
tags: ollama
|
|
|
|
- name: Deploy Docker Compose file
|
|
ansible.builtin.template:
|
|
src: docker-compose.yml.j2
|
|
dest: "{{ ollama_data_dir }}/docker-compose.yml"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: Restart ollama
|
|
tags: ollama
|
|
|
|
- name: Start Ollama
|
|
community.docker.docker_compose_v2:
|
|
project_src: "{{ ollama_data_dir }}"
|
|
state: present
|
|
pull: missing
|
|
tags: ollama
|
|
|
|
- name: List installed Ollama models
|
|
ansible.builtin.command: docker exec ollama ollama list
|
|
register: ollama_installed
|
|
changed_when: false
|
|
retries: 10
|
|
delay: 3
|
|
until: ollama_installed.rc == 0
|
|
tags: ollama
|
|
|
|
- name: Pull Ollama model
|
|
ansible.builtin.command: docker exec ollama ollama pull {{ ollama_model }}
|
|
when: ollama_model not in ollama_installed.stdout
|
|
changed_when: true
|
|
tags: ollama
|