zeroclaw, final changes to get things working, still need to add zeroclaw daemon runit script.

This commit is contained in:
me
2026-10-06 17:57:47 -07:00
parent fecefb6a6e
commit 562c2e4416
+33 -33
View File
@@ -37,6 +37,10 @@
#- glm4-flash
#- qwen3.5:4b
- qwen3:4b # most similar to Ask Brave
#- qwen2.5-coder:0.5b
#- qwen2.5-coder:1.5b
#- qwen2.5-coder:3b
#- qwen2.5-coder:7b
llm_removals:
- qwen2.5
zerocode: zerocode
@@ -70,40 +74,36 @@
- "{{ zerocode }}"
state: present
# Copy automatically creates any necessary directories.
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script
ansible.builtin.shell: "{{ item }}"
loop:
- "mkdir -p {{ ollama_runit_dir }}"
- "echo '#!/bin/sh -e' > {{ ollama_runit_start }}"
- "echo '# Allow pulling LLMs for use with ZeroClaw.' >> {{ ollama_runit_start }}"
- "echo 'exec 2>&1' >> {{ ollama_runit_start }}"
- "echo 'export HOME={{ user_user.home}}' >> {{ ollama_runit_start }}"
- "echo 'export OLLAMA_MAX_LOADED_MODELS=1' >> {{ ollama_runit_start }}"
- "echo 'exec chpst -u {{ user }} ollama serve' >> {{ ollama_runit_start }}"
- "chmod +x {{ ollama_runit_start }}"
register: shell_check
changed_when: shell_check.rc == 0
ansible.builtin.copy:
content: |
#!/bin/sh -e
# Allow pulling LLMs for use with ZeroClaw.
exec 2>&1
export HOME={{ user_user.home }}
export OLLAMA_MAX_LOADED_MODELS=1
exec chpst -u {{ user }} ollama serve
dest: "{{ ollama_runit_start }}"
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Script
ansible.builtin.shell: "{{ item }}"
loop:
- "mkdir -p {{ ollama_runit_log_dir }}"
- "echo '#!/bin/sh -e' > {{ ollama_runit_log_start }}"
- "echo 'exec svlogd -tt {{ ollama_runit_log_dest }}' >> {{ ollama_runit_log_start }}"
- "chmod +x {{ ollama_runit_log_start }}"
register: shell_check
changed_when: shell_check.rc == 0
ansible.builtin.copy:
content: |
#!/bin/sh -e
exec svlogd -tt {{ ollama_runit_log_dest }}
dest: "{{ ollama_runit_start }}"
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Config
ansible.builtin.shell: "{{ item }}"
loop:
- "mkdir -p {{ ollama_runit_log_dest }}"
- "echo 's10000000 # rotate at 10 MB' > {{ ollama_runit_log_config }}"
- "echo 'n5 # keep 5 old files' >> {{ ollama_runit_log_config }}"
register: shell_check
changed_when: shell_check.rc == 0
ansible.builtin.copy:
content: |
s10000000 # rotate at 10 MB
n5 # keep 5 old files
dest: "{{ ollama_runit_log_config }}"
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | Enable
@@ -162,12 +162,12 @@
become: true
become_user: "{{ user }}"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Config
ansible.builtin.copy:
src: files/settings/zeroclaw.config.toml
dest: "{{ user_user.home }}/.zeroclaw/config.toml"
owner: "{{ user }}"
mode: "0644"
#- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Config
# ansible.builtin.copy:
# src: files/settings/zeroclaw.config.toml
# dest: "{{ user_user.home }}/.zeroclaw/config.toml"
# owner: "{{ user }}"
# mode: "0644"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Test
ansible.builtin.debug: