From 8099c34791c6a171b616dd344cc4f2ed913489a8 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 7 Oct 2026 10:54:00 -0700 Subject: [PATCH] zeroclaw, move config editing to before the downloads so that it takes effect before waiting for all the installs. --- tasks/workstation/linux/software/zeroclaw.yml | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/tasks/workstation/linux/software/zeroclaw.yml b/tasks/workstation/linux/software/zeroclaw.yml index 3480635..f294eb1 100644 --- a/tasks/workstation/linux/software/zeroclaw.yml +++ b/tasks/workstation/linux/software/zeroclaw.yml @@ -309,6 +309,28 @@ - http://127.0.0.1:11434/ - http://127.0.0.1:42617/health + - name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Defaults + ansible.builtin.blockinfile: + path: "{{ user_user.home }}/.zeroclaw/config.toml" + marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Defaults" + insertbefore: BOF + block: | + default_provider = "ollama" + default_model = "qwen3.5:4b" + provider_timeout_secs = 3600 + + # Cheat Sheet: https://docs.zeroclaw.com/master/en/providers/configuration.html + - name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Add Providers + ansible.builtin.blockinfile: + path: "{{ user_user.home }}/.zeroclaw/config.toml" + marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Providers" + block: | + {% for llm in llm_installs %} + [providers.models.ollama.ansible_{{ llm.provider }}] + model = "{{ llm.model }}" + timeout_secs = 3600 # 1 hour, default is 120 (2 minutes), issue happens between 5 and 6 minutes though. + {% endfor %} + - name: Workstation | Linux | Software | ZeroClaw | Models | ollama | Install ansible.builtin.shell: | set -o pipefail @@ -351,26 +373,4 @@ become_user: "{{ user }}" when: llm_removals | length > 0 - - name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Defaults - ansible.builtin.blockinfile: - path: "{{ user_user.home }}/.zeroclaw/config.toml" - marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Defaults" - insertbefore: BOF - block: | - default_provider = "ollama" - default_model = "qwen3.5:4b" - provider_timeout_secs = 3600 - - # Cheat Sheet: https://docs.zeroclaw.com/master/en/providers/configuration.html - - name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Add Providers - ansible.builtin.blockinfile: - path: "{{ user_user.home }}/.zeroclaw/config.toml" - marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Providers" - block: | - {% for llm in llm_installs %} - [providers.models.ollama.ansible_{{ llm.provider }}] - model = "{{ llm.model }}" - timeout_secs = 3600 # 1 hour, default is 120 (2 minutes), issue happens between 5 and 6 minutes though. - {% endfor %} - when: ansible_pkg_mgr == "pacman"