From 57707ff56e64736c03ed416b53e1e6a3d3cff2d3 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 7 Oct 2026 11:19:50 -0700 Subject: [PATCH] zeroclaw, add explicit attributes to the blockinfile tasks. --- tasks/workstation/linux/software/zeroclaw.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tasks/workstation/linux/software/zeroclaw.yml b/tasks/workstation/linux/software/zeroclaw.yml index 39d1174..ac1078f 100644 --- a/tasks/workstation/linux/software/zeroclaw.yml +++ b/tasks/workstation/linux/software/zeroclaw.yml @@ -327,18 +327,30 @@ default_provider = "ollama" default_model = "qwen3.5:4b" provider_timeout_secs = 3600 + state: present + create: false + backup: true + owner: "{{ user }}" + mode: "0644" + # 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" + insertafter: EOF 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 %} + state: present + create: false + backup: false + owner: "{{ user }}" + mode: "0644" - name: Workstation | Linux | Software | ZeroClaw | Models | ollama | Install ansible.builtin.shell: |