From 7dd0f80590b73aaffd93dc52fc5fa6a214ff92d8 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Wed, 7 Oct 2026 00:58:06 -0700 Subject: [PATCH] zeroclaw, fix tasks to create log dest, all have owner and mode set, and have when clauses related to runit. --- tasks/workstation/linux/software/zeroclaw.yml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/tasks/workstation/linux/software/zeroclaw.yml b/tasks/workstation/linux/software/zeroclaw.yml index 1737760..5865ac8 100644 --- a/tasks/workstation/linux/software/zeroclaw.yml +++ b/tasks/workstation/linux/software/zeroclaw.yml @@ -90,8 +90,11 @@ ansible.builtin.file: name: "{{ ollama_runit_dir }}" state: directory + owner: root + mode: "0755" + when: ansible_service_mgr == "runit" - - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script + - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | File ansible.builtin.copy: content: | #!/bin/sh -e @@ -108,7 +111,9 @@ ansible.builtin.file: name: "{{ ollama_runit_log_dir }}" state: directory - owner: "{{ user }}" + owner: root + mode: "0755" + when: ansible_service_mgr == "runit" - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Script ansible.builtin.copy: @@ -119,6 +124,14 @@ mode: "0755" when: ansible_service_mgr == "runit" + - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Dest + ansible.builtin.file: + name: "{{ ollama_runit_log_dir }}" + state: directory + owner: "{{ user }}" + mode: "0755" + when: ansible_service_mgr == "runit" + - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Config ansible.builtin.copy: content: | @@ -139,8 +152,11 @@ ansible.builtin.file: name: "{{ zeroclaw_runit_dir }}" state: directory + owner: root + mode: "0755" + when: ansible_service_mgr == "runit" - - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script + - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script | File ansible.builtin.copy: content: | #!/bin/sh -e @@ -155,7 +171,9 @@ ansible.builtin.file: name: "{{ zeroclaw_runit_log_dir }}" state: directory - owner: "{{ user }}" + owner: root + mode: "0755" + when: ansible_service_mgr == "runit" - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Script ansible.builtin.copy: @@ -166,6 +184,14 @@ mode: "0755" when: ansible_service_mgr == "runit" + - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Dest + ansible.builtin.file: + name: "{{ zeroclaw_runit_log_dest }}" + state: directory + owner: "{{ user }}" + mode: "0755" + when: ansible_service_mgr == "runit" + - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Config ansible.builtin.copy: content: |