diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 7de64f2..97c1abb 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -289,36 +289,59 @@ ; ; ollama (default=true) ; Install and enable the ollama LLM manager. + ; API: http://127.0.0.1:11434 ; ; manage_models (default=true) ; Automatically choose and pull the models to use based on system ; 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) ; Install and enable the Zeroclaw web daemon, a minimalistic interface ; for many models and providers with negligible resource usage. Also ; installs the CLI tool zerocode as an alternative to the web GUI. + ; URL: http://127.0.0.1:42617 ; ; open_webui (default=false) ; Install and enable open-webui as a Docker container. Very polished web - ; frontend for ollama and also handles other LLMs through API calls. - ; Container is over 1GB in size and consumes resources. + ; frontend for ollama and also handles other web LLMs through API calls. + ; Container is over 1GB in size and consumes substantial resources! + ; URL: http://localhost:1337 ; ; open_webui_port (default=3000) ; 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 - ; system, then not critical. Use `openssl rand -hex 16` or larger. - ; - ; hf_token (default=false) - ; Token from Hugging Face which allows faster download speeds than anon. + ; system, then not critical. Use `openssl rand -hex 32` to create one. ; ; codium_config (default=true) ; Manage the config files for and Codium plugins. Cline and Continue are ; the recommended Codium extensions but need installed through the GUI. ; 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 @@ -373,10 +396,11 @@ manage_models: "{{ lookup('ini', 'manage_models 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_port: "{{ lookup('ini', 'open_webui_port file={{wrk_file}} default=3000' ) | int }}" - open_webui_key: "{{ lookup('ini', 'open_webui_key file={{wrk_file}} default=yolo' ) }}" - hf_token: "{{ lookup('ini', 'hf_token file={{wrk_file}} default=false') }}" + 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=PleaseEnsureTheKeyIsAtLeast32To64Characters') }}" + hf_token: "{{ lookup('ini', 'hf_token file={{wrk_file}} default=false') }}" 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 ansible.builtin.set_fact: @@ -405,6 +429,7 @@ - { 'open_webui_key': "{{ open_webui_key }}" } - { 'hf_token': "{{ hf_token }}" } - { 'codium_config': "{{ codium_config }}" } + - { 'qwen_code_enabled': "{{ qwen_code_enabled }}" } # No longer mining, this is now considered deprecated. ### Miner ##