provision, add qwen-code to workstation, break LLMs into main and GUI sections.

This commit is contained in:
me
2026-10-12 09:42:46 -07:00
parent 0e10bc235f
commit e8cece4445
+36 -11
View File
@@ -289,36 +289,59 @@
; ;
; ollama (default=true) ; ollama (default=true)
; Install and enable the ollama LLM manager. ; Install and enable the ollama LLM manager.
; API: http://127.0.0.1:11434
; ;
; manage_models (default=true) ; manage_models (default=true)
; Automatically choose and pull the models to use based on system ; Automatically choose and pull the models to use based on system
; resources. Otherwise leaves images alone but still handles config. ; resources. Otherwise leaves images alone but still handles config.
; ;
; hf_token (default=false)
; Token from Hugging Face which allows faster download speeds than anon.
; May help with ollama and also supposed to help with open-webui. Token
; needs set to something like hf_kjBCCLABEEABUVAKbjadbvkaksvBAVKBkjsDVK.
;
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
state: present
create: true
backup: true
mode: "0644"
- name: General | Account Management | Provisioning Configuration | Workstation | Create | LLMs | GUIs
ansible.builtin.blockinfile:
path: "{{ wrk_file }}"
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config | LLMs | GUIs'
block: |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; LLMs: GUIs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; zero (default=true) ; zero (default=true)
; Install and enable the Zeroclaw web daemon, a minimalistic interface ; Install and enable the Zeroclaw web daemon, a minimalistic interface
; for many models and providers with negligible resource usage. Also ; for many models and providers with negligible resource usage. Also
; installs the CLI tool zerocode as an alternative to the web GUI. ; installs the CLI tool zerocode as an alternative to the web GUI.
; URL: http://127.0.0.1:42617
; ;
; open_webui (default=false) ; open_webui (default=false)
; 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 web LLMs through API calls.
; Container is over 1GB in size and consumes resources. ; Container is over 1GB in size and consumes substantial resources!
; URL: http://localhost:1337
; ;
; open_webui_port (default=3000) ; open_webui_port (default=3000)
; Port on which to run the open-webui Docker instance. ; Port on which to run the open-webui Docker instance.
; ;
; open_webui_key (default=yolo) ; open_webui_key (default=PleaseEnsureTheKeyIsAtLeast32To64Characters)
; Secret key, allows persistence between runs. If not a public-facing ; Secret key, allows persistence between runs. If not a public-facing
; system, then not critical. Use `openssl rand -hex 16` or larger. ; system, then not critical. Use `openssl rand -hex 32` to create one.
;
; hf_token (default=false)
; Token from Hugging Face which allows faster download speeds than anon.
; ;
; 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
; the recommended Codium extensions but need installed through the GUI. ; the recommended Codium extensions but need installed through the GUI.
; Currently handles: ; Currently handles:
; - ~/.continue/config.yml ; ~/.continue/config.yml
;
; qwen_code (default=true)
; Install and enable qwen-code as a daemon.
; URL: http://127.0.0.1:4170
; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
state: present state: present
@@ -373,10 +396,11 @@
manage_models: "{{ lookup('ini', 'manage_models file={{wrk_file}} default=true' ) | bool }}" manage_models: "{{ lookup('ini', 'manage_models file={{wrk_file}} default=true' ) | bool }}"
zeroclaw_enabled: "{{ lookup('ini', 'zero file={{wrk_file}} default=true ') | bool }}" zeroclaw_enabled: "{{ lookup('ini', 'zero file={{wrk_file}} default=true ') | bool }}"
open_webui_enabled: "{{ lookup('ini', 'open_webui file={{wrk_file}} default=false') | bool }}" open_webui_enabled: "{{ lookup('ini', 'open_webui file={{wrk_file}} default=false') | bool }}"
open_webui_port: "{{ lookup('ini', 'open_webui_port file={{wrk_file}} default=3000' ) | int }}" open_webui_port: "{{ lookup('ini', 'open_webui_port file={{wrk_file}} default=1337' ) | int }}"
open_webui_key: "{{ lookup('ini', 'open_webui_key file={{wrk_file}} default=yolo' ) }}" open_webui_key: "{{ lookup('ini', 'open_webui_key file={{wrk_file}} default=PleaseEnsureTheKeyIsAtLeast32To64Characters') }}"
hf_token: "{{ lookup('ini', 'hf_token file={{wrk_file}} default=false') }}" hf_token: "{{ lookup('ini', 'hf_token file={{wrk_file}} default=false') }}"
codium_config: "{{ lookup('ini', 'codium_config file={{wrk_file}} default=true' ) | bool }}" codium_config: "{{ lookup('ini', 'codium_config file={{wrk_file}} default=true' ) | bool }}"
qwen_code_enabled: "{{ lookup('ini', 'qwen_code 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
ansible.builtin.set_fact: ansible.builtin.set_fact:
@@ -405,6 +429,7 @@
- { 'open_webui_key': "{{ open_webui_key }}" } - { 'open_webui_key': "{{ open_webui_key }}" }
- { 'hf_token': "{{ hf_token }}" } - { 'hf_token': "{{ hf_token }}" }
- { 'codium_config': "{{ codium_config }}" } - { 'codium_config': "{{ codium_config }}" }
- { 'qwen_code_enabled': "{{ qwen_code_enabled }}" }
# No longer mining, this is now considered deprecated. # No longer mining, this is now considered deprecated.
### Miner ## ### Miner ##