diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 5a6b0c1..1d5ec16 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -280,6 +280,43 @@ backup: true mode: "0644" +- name: General | Account Management | Provisioning Configuration | Workstation | Create | LLMs + ansible.builtin.blockinfile: + path: "{{ wrk_file }}" + marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config | LLMs' + block: | + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; LLMs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ; + ; ollama (default=true) + ; Install and enable the ollama LLM manager. + ; + ; automanage_models (default=true) + ; Automatically choose and pull the models to use based on + ; system resources. Otherwise leave user-pulled images alone. + ; + ; zero (default=false) + ; 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. + ; + ; open_webui (default=true) + ; Install and enable open-webui as a Docker container. Very polished web + ; frontend for ollama and also handles other LLMs through API calls. + ; + ; open_webui_port (default=1337) + ; Port on which to run the open-webui Docker instance. Normal default is + ; 8080, but suggesting 1337 to avoid colliding with other servers. + ; + ; 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. + ; + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + state: present + create: true + backup: true + mode: "0644" + - name: General | Account Management | Provisioning Configuration | Workstation | Create | Other Options ansible.builtin.blockinfile: path: "{{ wrk_file }}" @@ -310,16 +347,25 @@ - name: General | Account Management | Provisioning Configuration | Workstation | Load ansible.builtin.set_fact: + # Main workstation: "{{ lookup('ini', 'enable file={{wrk_file}} default=false') | bool }}" coding: "{{ lookup('ini', 'coding file={{wrk_file}} default=false') | bool }}" sdks: "{{ lookup('ini', 'sdks file={{wrk_file}} default=false') | bool }}" editing: "{{ lookup('ini', 'editing file={{wrk_file}} default=false') }}" gaming: "{{ lookup('ini', 'gaming file={{wrk_file}} default=false') | bool }}" - rdp: "{{ lookup('ini', 'rdp file={{wrk_file}} default=false') | bool }}" - vnc: "{{ lookup('ini', 'vnc file={{wrk_file}} default=false') | bool }}" - bsd_gpu: "{{ lookup('ini', 'bsd_gpu file={{wrk_file}} default=false') | bool }}" - mobile: "{{ lookup('ini', 'mobile file={{wrk_file}} default=false') | bool }}" - redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) | bool }}" + # Other + rdp: "{{ lookup('ini', 'rdp file={{wrk_file}} default=false') | bool }}" + vnc: "{{ lookup('ini', 'vnc file={{wrk_file}} default=false') | bool }}" + bsd_gpu: "{{ lookup('ini', 'bsd_gpu file={{wrk_file}} default=false') | bool }}" + mobile: "{{ lookup('ini', 'mobile file={{wrk_file}} default=false') | bool }}" + redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) | bool }}" + # LLMs + ollama: "{{ lookup('ini', 'ollama 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 }}" + 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 }}" + codium_config: "{{ lookup('ini', 'codium_config file={{wrk_file}} default=true' ) | bool }}" - name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing ansible.builtin.set_fact: @@ -340,6 +386,12 @@ - { 'bsd_gpu': "{{ bsd_gpu }}" } - { 'mobile': "{{ mobile }}" } - { 'redmode': "{{ redmode }}" } + - { 'ollama': "{{ ollama }}" } + - { 'automanage_models': "{{ automanage_models }}" } + - { 'zero': "{{ zero }}" } + - { 'open_webui': "{{ open_webui }}" } + - { 'open_webui_port': "{{ open_webui_port }}" } + - { 'codium_config': "{{ codium_config }}" } # No longer mining, this is now considered deprecated. ### Miner ##