This commit is contained in:
2026-03-20 13:20:58 +01:00
commit 2af73b780b
27 changed files with 333 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
openwebui_install_dir: /opt/openwebui
openwebui_image: ghcr.io/open-webui/open-webui
openwebui_image_tag: main-slim
openwebui_container_labels: []

View File

@@ -0,0 +1,19 @@
---
- name: Create Directories
ansible.builtin.file:
state: directory
path: "{{ openwebui_install_dir }}/{{ item }}"
loop:
- data
- compose
- name: Pull Openwebui Image
community.docker.docker_image:
source: pull
name: "{{ openwebui_image }}:{{ openwebui_image_tag }}"
- name: Copy composefile
ansible.builtin.template:
src: templates/composefile.yml
dest: "{{ openwebui_install_dir }}/compose/composefile.yml"

View File

@@ -0,0 +1,5 @@
---
- name: Include selected operations for OpenWebUi
tags:
- openwebui
ansible.builtin.include_tasks: "{{ deployment_action|default('deploy') }}/main.yml"

View File

@@ -0,0 +1 @@
---

View File

@@ -0,0 +1,17 @@
---
services:
open-webui:
image: {{ openwebui_image }}:{{ openwebui_image_tag }}
network_mode: host
environment:
FORWARDED_ALLOW_IPS: '*'
OLLAMA_BASE_URL: http://localhost:11434
OFFLINE_MODE: True
DEFAULT_USER_ROLE: user
volumes:
- {{ openwebui_install_dir }}/data:/app/backend/data
{% if openwebui_container_labels %}
labels:
{{ openwebui_container_labels|to_nice_yaml|indent(4) }}
{% endif %}