zeroclaw, final changes to get things working, still need to add zeroclaw daemon runit script.
This commit is contained in:
@@ -37,6 +37,10 @@
|
|||||||
#- glm4-flash
|
#- glm4-flash
|
||||||
#- qwen3.5:4b
|
#- qwen3.5:4b
|
||||||
- qwen3:4b # most similar to Ask Brave
|
- 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:
|
llm_removals:
|
||||||
- qwen2.5
|
- qwen2.5
|
||||||
zerocode: zerocode
|
zerocode: zerocode
|
||||||
@@ -70,40 +74,36 @@
|
|||||||
- "{{ zerocode }}"
|
- "{{ zerocode }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
# Copy automatically creates any necessary directories.
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script
|
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script
|
||||||
ansible.builtin.shell: "{{ item }}"
|
ansible.builtin.copy:
|
||||||
loop:
|
content: |
|
||||||
- "mkdir -p {{ ollama_runit_dir }}"
|
#!/bin/sh -e
|
||||||
- "echo '#!/bin/sh -e' > {{ ollama_runit_start }}"
|
# Allow pulling LLMs for use with ZeroClaw.
|
||||||
- "echo '# Allow pulling LLMs for use with ZeroClaw.' >> {{ ollama_runit_start }}"
|
exec 2>&1
|
||||||
- "echo 'exec 2>&1' >> {{ ollama_runit_start }}"
|
export HOME={{ user_user.home }}
|
||||||
- "echo 'export HOME={{ user_user.home}}' >> {{ ollama_runit_start }}"
|
export OLLAMA_MAX_LOADED_MODELS=1
|
||||||
- "echo 'export OLLAMA_MAX_LOADED_MODELS=1' >> {{ ollama_runit_start }}"
|
exec chpst -u {{ user }} ollama serve
|
||||||
- "echo 'exec chpst -u {{ user }} ollama serve' >> {{ ollama_runit_start }}"
|
dest: "{{ ollama_runit_start }}"
|
||||||
- "chmod +x {{ ollama_runit_start }}"
|
mode: "0755"
|
||||||
register: shell_check
|
|
||||||
changed_when: shell_check.rc == 0
|
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Script
|
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Script
|
||||||
ansible.builtin.shell: "{{ item }}"
|
ansible.builtin.copy:
|
||||||
loop:
|
content: |
|
||||||
- "mkdir -p {{ ollama_runit_log_dir }}"
|
#!/bin/sh -e
|
||||||
- "echo '#!/bin/sh -e' > {{ ollama_runit_log_start }}"
|
exec svlogd -tt {{ ollama_runit_log_dest }}
|
||||||
- "echo 'exec svlogd -tt {{ ollama_runit_log_dest }}' >> {{ ollama_runit_log_start }}"
|
dest: "{{ ollama_runit_start }}"
|
||||||
- "chmod +x {{ ollama_runit_log_start }}"
|
mode: "0755"
|
||||||
register: shell_check
|
|
||||||
changed_when: shell_check.rc == 0
|
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Config
|
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Config
|
||||||
ansible.builtin.shell: "{{ item }}"
|
ansible.builtin.copy:
|
||||||
loop:
|
content: |
|
||||||
- "mkdir -p {{ ollama_runit_log_dest }}"
|
s10000000 # rotate at 10 MB
|
||||||
- "echo 's10000000 # rotate at 10 MB' > {{ ollama_runit_log_config }}"
|
n5 # keep 5 old files
|
||||||
- "echo 'n5 # keep 5 old files' >> {{ ollama_runit_log_config }}"
|
dest: "{{ ollama_runit_log_config }}"
|
||||||
register: shell_check
|
mode: "0755"
|
||||||
changed_when: shell_check.rc == 0
|
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | ollama | Enable
|
- name: Workstation | Linux | Software | ZeroClaw | ollama | Enable
|
||||||
@@ -162,12 +162,12 @@
|
|||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Config
|
#- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Config
|
||||||
ansible.builtin.copy:
|
# ansible.builtin.copy:
|
||||||
src: files/settings/zeroclaw.config.toml
|
# src: files/settings/zeroclaw.config.toml
|
||||||
dest: "{{ user_user.home }}/.zeroclaw/config.toml"
|
# dest: "{{ user_user.home }}/.zeroclaw/config.toml"
|
||||||
owner: "{{ user }}"
|
# owner: "{{ user }}"
|
||||||
mode: "0644"
|
# mode: "0644"
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Test
|
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Test
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user