fix(gateway_openclaw): resolve parse error on windows module in handlers

This commit is contained in:
Haitao Pan 2026-06-21 19:57:37 +08:00
parent 48ba854671
commit 85bad4155f
2 changed files with 7 additions and 4 deletions

View File

@ -14,10 +14,7 @@
listen: Restart openclaw
- name: Run OpenClaw doctor (Windows)
community.windows.win_command: "{{ gateway_openclaw_home }}\\.local\\node_modules\\openclaw\\bin\\openclaw.cmd doctor --fix --force"
environment:
OPENCLAW_NO_RESPAWN: "1"
NODE_COMPILE_CACHE: "{{ gateway_openclaw_compile_cache_dir }}"
ansible.builtin.include_tasks: windows_doctor.yml
when:
- not ansible_check_mode
- ansible_os_family == 'Windows'

View File

@ -0,0 +1,6 @@
---
- name: Execute OpenClaw doctor
community.windows.win_command: "{{ gateway_openclaw_home }}\\.local\\node_modules\\openclaw\\bin\\openclaw.cmd doctor --fix --force"
environment:
OPENCLAW_NO_RESPAWN: "1"
NODE_COMPILE_CACHE: "{{ gateway_openclaw_compile_cache_dir }}"