zeroclaw, fix log script locations, rename variables.
This commit is contained in:
@@ -66,17 +66,17 @@
|
||||
|
||||
- name: Workstation | Linux | Software | ZeroClaw | Facts 03
|
||||
ansible.builtin.set_fact:
|
||||
ollama_runit_start: "{{ ollama_runit_dir }}/{{ runit_service_script }}"
|
||||
ollama_runit_script: "{{ ollama_runit_dir }}/{{ runit_service_script }}"
|
||||
ollama_runit_log_dir: "{{ ollama_runit_dir }}/{{ runit_log_dir }}"
|
||||
ollama_runit_log_config: "{{ ollama_runit_log_dest }}/{{ global_log_config }}"
|
||||
zeroclaw_runit_start: "{{ zeroclaw_runit_dir }}/{{ runit_service_script }}"
|
||||
zeroclaw_runit_script: "{{ zeroclaw_runit_dir }}/{{ runit_service_script }}"
|
||||
zeroclaw_runit_log_dir: "{{ zeroclaw_runit_dir }}/{{ runit_log_dir }}"
|
||||
zeroclaw_runit_log_config: "{{ zeroclaw_runit_log_dest }}/{{ global_log_config }}"
|
||||
|
||||
- name: Workstation | Linux | Software | ZeroClaw | Facts 04
|
||||
ansible.builtin.set_fact:
|
||||
ollama_runit_log_start: "{{ ollama_runit_log_dir }}/{{ runit_log_script }}"
|
||||
zeroclaw_runit_log_start: "{{ zeroclaw_runit_log_dir }}/{{ runit_log_script }}"
|
||||
ollama_runit_log_script: "{{ ollama_runit_log_dir }}/{{ runit_log_script }}"
|
||||
zeroclaw_runit_log_script: "{{ zeroclaw_runit_log_dir }}/{{ runit_log_script }}"
|
||||
|
||||
- name: Workstation | Linux | Software | ZeroClaw | Install
|
||||
ansible.builtin.package:
|
||||
@@ -103,7 +103,7 @@
|
||||
export HOME={{ user_user.home }}
|
||||
export OLLAMA_MAX_LOADED_MODELS=1
|
||||
exec chpst -u {{ user }} ollama serve
|
||||
dest: "{{ ollama_runit_start }}"
|
||||
dest: "{{ ollama_runit_script }}"
|
||||
mode: "0755"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
content: |
|
||||
#!/bin/sh -e
|
||||
exec svlogd -tt {{ ollama_runit_log_dest }}
|
||||
dest: "{{ ollama_runit_start }}"
|
||||
dest: "{{ ollama_runit_log_script }}"
|
||||
mode: "0755"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
# Allow using the ZeroClaw frontend.
|
||||
exec 2>&1
|
||||
exec chpst -u {{ user }} zeroclaw daemon
|
||||
dest: "{{ zeroclaw_runit_start }}"
|
||||
dest: "{{ zeroclaw_runit_script }}"
|
||||
mode: "0755"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
content: |
|
||||
#!/bin/sh -e
|
||||
exec svlogd -tt {{ zeroclaw_runit_log_dest }}
|
||||
dest: "{{ zeroclaw_runit_start }}"
|
||||
dest: "{{ zeroclaw_runit_log_script }}"
|
||||
mode: "0755"
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
|
||||
- name: Workstation | Linux | Software | ZeroClaw | ollama | Wait
|
||||
ansible.builtin.uri:
|
||||
url: http://127.0.0.1:11434/api/version
|
||||
url: http://127.0.0.1:11434/
|
||||
status_code: 200
|
||||
timeout: 5
|
||||
register: health
|
||||
@@ -259,7 +259,7 @@
|
||||
|
||||
- name: Workstation | Linux | Software | ZeroClaw | zeroclaw | Wait
|
||||
ansible.builtin.uri:
|
||||
url: http://127.0.0.1:42617/api/version
|
||||
url: http://127.0.0.1:42617
|
||||
status_code: 200
|
||||
timeout: 5
|
||||
register: health
|
||||
|
||||
Reference in New Issue
Block a user