zeroclaw, add explicit attributes to the blockinfile tasks.

This commit is contained in:
me
2026-10-07 11:19:50 -07:00
parent fe6f41d1e8
commit 57707ff56e
@@ -327,18 +327,30 @@
default_provider = "ollama" default_provider = "ollama"
default_model = "qwen3.5:4b" default_model = "qwen3.5:4b"
provider_timeout_secs = 3600 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 # Cheat Sheet: https://docs.zeroclaw.com/master/en/providers/configuration.html
- name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Add Providers - name: Workstation | Linux | Software | ZeroClaw | Models | zeroclaw | Add Providers
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
path: "{{ user_user.home }}/.zeroclaw/config.toml" path: "{{ user_user.home }}/.zeroclaw/config.toml"
marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Providers" marker: "# {mark} ANSIBLE MANAGED BLOCK | zeroclaw | Providers"
insertafter: EOF
block: | block: |
{% for llm in llm_installs %} {% for llm in llm_installs %}
[providers.models.ollama.ansible_{{ llm.provider }}] [providers.models.ollama.ansible_{{ llm.provider }}]
model = "{{ llm.model }}" model = "{{ llm.model }}"
timeout_secs = 3600 # 1 hour, default is 120 (2 minutes), issue happens between 5 and 6 minutes though. timeout_secs = 3600 # 1 hour, default is 120 (2 minutes), issue happens between 5 and 6 minutes though.
{% endfor %} {% endfor %}
state: present
create: false
backup: false
owner: "{{ user }}"
mode: "0644"
- name: Workstation | Linux | Software | ZeroClaw | Models | ollama | Install - name: Workstation | Linux | Software | ZeroClaw | Models | ollama | Install
ansible.builtin.shell: | ansible.builtin.shell: |