zeroclaw, move config editing to before the downloads so that it takes effect before waiting for all the installs.

This commit is contained in:
me
2026-10-07 10:54:00 -07:00
parent a319e29f93
commit 8099c34791
+22 -22
View File
@@ -309,6 +309,28 @@
- http://127.0.0.1:11434/ - http://127.0.0.1:11434/
- http://127.0.0.1:42617/health - 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 - name: Workstation | Linux | Software | ZeroClaw | Models | ollama | Install
ansible.builtin.shell: | ansible.builtin.shell: |
set -o pipefail set -o pipefail
@@ -351,26 +373,4 @@
become_user: "{{ user }}" become_user: "{{ user }}"
when: llm_removals | length > 0 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" when: ansible_pkg_mgr == "pacman"