zeroclaw, consolidate dir tasks and ensure all the variables are correct.

This commit is contained in:
me
2026-10-07 08:26:49 -07:00
parent ce34f879d6
commit bef91a4ba1
+39 -39
View File
@@ -92,7 +92,7 @@
- "{{ zerocode }}" - "{{ zerocode }}"
state: present state: present
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | Dir - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Dir | Run
ansible.builtin.file: ansible.builtin.file:
name: "{{ ollama_runit_dir }}" name: "{{ ollama_runit_dir }}"
state: directory state: directory
@@ -100,7 +100,23 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | File - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Dir | Log Run
ansible.builtin.file:
name: "{{ ollama_runit_log_dir }}"
state: directory
owner: root
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Dir | Log Config
ansible.builtin.file:
name: "{{ ollama_runit_log_dest }}"
state: directory
owner: "{{ user }}"
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | Run
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
#!/bin/sh -e #!/bin/sh -e
@@ -114,15 +130,7 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Dir - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | Log
ansible.builtin.file:
name: "{{ ollama_runit_log_dir }}"
state: directory
owner: root
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Script
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
#!/bin/sh -e #!/bin/sh -e
@@ -131,15 +139,7 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Log | Dest - name: Workstation | Linux | Software | ZeroClaw | ollama | runit | Script | Log Config
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: ansible.builtin.copy:
content: | content: |
s10000000 # rotate at 10 MB s10000000 # rotate at 10 MB
@@ -155,7 +155,7 @@
state: started state: started
enabled: true enabled: true
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script | Dir - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Dir | Run
ansible.builtin.file: ansible.builtin.file:
name: "{{ zeroclaw_runit_dir }}" name: "{{ zeroclaw_runit_dir }}"
state: directory state: directory
@@ -163,6 +163,22 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Dir | Log
ansible.builtin.file:
name: "{{ zeroclaw_runit_log_dir }}"
state: directory
owner: root
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Dir | Log Config
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 | Script | File - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script | File
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
@@ -174,15 +190,7 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Dir - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script | Log
ansible.builtin.file:
name: "{{ zeroclaw_runit_log_dir }}"
state: directory
owner: root
mode: "0755"
when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Script
ansible.builtin.copy: ansible.builtin.copy:
content: | content: |
#!/bin/sh -e #!/bin/sh -e
@@ -191,15 +199,7 @@
mode: "0755" mode: "0755"
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Log | Dest - name: Workstation | Linux | Software | ZeroClaw | zeroclaw | runit | Script | Log Config
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: ansible.builtin.copy:
content: | content: |
s1000000 # rotate at 1 MB s1000000 # rotate at 1 MB