Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
196c879c27 | ||
|
|
9aae4dc2ca |
No files matched your search
@@ -303,9 +303,8 @@
|
|||||||
; Install and enable open-webui as a Docker container. Very polished web
|
; Install and enable open-webui as a Docker container. Very polished web
|
||||||
; frontend for ollama and also handles other LLMs through API calls.
|
; frontend for ollama and also handles other LLMs through API calls.
|
||||||
;
|
;
|
||||||
; open_webui_port (default=1337)
|
; open_webui_port (default=3000)
|
||||||
; Port on which to run the open-webui Docker instance. Normal default is
|
; Port on which to run the open-webui Docker instance.
|
||||||
; 8080, but suggesting 1337 to avoid colliding with other servers.
|
|
||||||
;
|
;
|
||||||
; codium_config (default=true)
|
; codium_config (default=true)
|
||||||
; Manage the config files for and Codium plugins. Cline and Continue are
|
; Manage the config files for and Codium plugins. Cline and Continue are
|
||||||
@@ -364,7 +363,7 @@
|
|||||||
automanage_models: "{{ lookup('ini', 'automanage_models file={{wrk_file}} default=true' ) | bool }}"
|
automanage_models: "{{ lookup('ini', 'automanage_models file={{wrk_file}} default=true' ) | bool }}"
|
||||||
zero: "{{ lookup('ini', 'zero file={{wrk_file}} default=false') | bool }}"
|
zero: "{{ lookup('ini', 'zero file={{wrk_file}} default=false') | bool }}"
|
||||||
open_webui: "{{ lookup('ini', 'open_webui file={{wrk_file}} default=true' ) | bool }}"
|
open_webui: "{{ lookup('ini', 'open_webui file={{wrk_file}} default=true' ) | bool }}"
|
||||||
open_webui_port: "{{ lookup('ini', 'open_webui_port file={{wrk_file}} default=1337' ) | int }}"
|
open_webui_port: "{{ lookup('ini', 'open_webui_port file={{wrk_file}} default=3000' ) | int }}"
|
||||||
codium_config: "{{ lookup('ini', 'codium_config file={{wrk_file}} default=true' ) | bool }}"
|
codium_config: "{{ lookup('ini', 'codium_config file={{wrk_file}} default=true' ) | bool }}"
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing
|
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing
|
||||||
|
|||||||
@@ -272,6 +272,63 @@
|
|||||||
dateformat %Y-%m-%d_%H-%M-%S # each run gets its own file.
|
dateformat %Y-%m-%d_%H-%M-%S # each run gets its own file.
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Packages
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- docker
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Packages | init
|
||||||
|
ansible.builtin.package:
|
||||||
|
name:
|
||||||
|
- docker-runit
|
||||||
|
state: present
|
||||||
|
when: ansible_pkg_mgr == "pacman"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Dir | Run
|
||||||
|
ansible.builtin.file:
|
||||||
|
name: "/etc/sv/open_webui"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Dir | Log
|
||||||
|
ansible.builtin.file:
|
||||||
|
name: "/etc/sv/open_webui/log"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Dir | Log Config
|
||||||
|
ansible.builtin.file:
|
||||||
|
name: "/var/log/open_webui"
|
||||||
|
state: directory
|
||||||
|
owner: "{{ user }}"
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Workstation | Linux | Software | LLMs | runit | open-webui | Script | File
|
||||||
|
ansible.builtin.copy:
|
||||||
|
dest: /etc/sv/open_webui/run
|
||||||
|
content: |
|
||||||
|
#!/bin/sh -e
|
||||||
|
# Wait for Docker to start up.
|
||||||
|
while [ ! -S /var/run/docker.sock ]; do sleep 1; done
|
||||||
|
# Start the open-webui program.
|
||||||
|
exec docker run --rm \
|
||||||
|
-p 3000:{{ open_webui_port }} \
|
||||||
|
--add-host=host.docker.internal:host-gateway \
|
||||||
|
-v open-webui:/app/backend/data \
|
||||||
|
-e WEBUI_SECRET_KEY=your-secret-key \
|
||||||
|
-e OLLAMA_BASE_URL=http://host.docker.internal:11434 \
|
||||||
|
--name open-webui \
|
||||||
|
ghcr.io/open-webui/open-webui:main
|
||||||
|
mode: "0755"
|
||||||
|
|
||||||
|
when: open_webui
|
||||||
|
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | LLMs | Services | Enable
|
- name: Workstation | Linux | Software | LLMs | Services | Enable
|
||||||
@@ -282,6 +339,8 @@
|
|||||||
loop:
|
loop:
|
||||||
- "{{ ollama }}"
|
- "{{ ollama }}"
|
||||||
- "{{ zeroclaw }}"
|
- "{{ zeroclaw }}"
|
||||||
|
- "docker"
|
||||||
|
- "open_webui"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | LLMs | Services | Verify
|
- name: Workstation | Linux | Software | LLMs | Services | Verify
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
@@ -295,6 +354,7 @@
|
|||||||
loop:
|
loop:
|
||||||
- http://127.0.0.1:11434/
|
- http://127.0.0.1:11434/
|
||||||
- http://127.0.0.1:42617/health
|
- http://127.0.0.1:42617/health
|
||||||
|
- http://127.0.0.1:3000
|
||||||
|
|
||||||
#- name: Workstation | Linux | Software | LLMs | Config | zeroclaw | Root
|
#- name: Workstation | Linux | Software | LLMs | Config | zeroclaw | Root
|
||||||
# ansible.builtin.blockinfile:
|
# ansible.builtin.blockinfile:
|
||||||
|
|||||||
Reference in new issue
Block a user