fix(macOS): update ansible setup patching logic to match the newly unified 'Restart openclaw' listen topic

This commit is contained in:
Haitao Pan 2026-06-21 19:12:42 +08:00
parent 3cf926c7eb
commit bf1762a912

View File

@ -1780,7 +1780,7 @@ if path.exists():
" group: \"{{ gateway_openclaw_service_group }}\"\n"
" mode: \"0755\"\n"
" become: \"{{ ansible_os_family != 'Darwin' }}\"\n"
" notify: Restart openclaw gateway"
" notify: Restart openclaw"
)
extract_new = (
"- name: Extract OpenClaw Multi-Session Plugins\n"
@ -1792,7 +1792,7 @@ if path.exists():
" group: \"{{ gateway_openclaw_service_group }}\"\n"
" mode: \"0755\"\n"
" become: \"{{ ansible_os_family != 'Darwin' }}\"\n"
" notify: Restart openclaw gateway\n"
" notify: Restart openclaw\n"
" when: ansible_os_family != 'Darwin'"
)
if extract_old in text:
@ -1836,7 +1836,7 @@ if path.exists():
" group: \"{{ gateway_openclaw_service_group }}\"\n"
" become_user: \"{{ gateway_openclaw_service_user }}\"\n"
" when: ansible_os_family == 'Darwin'\n"
" notify: Restart openclaw gateway\n"
" notify: Restart openclaw\n"
"\n"
)
if anchor in text and "Clone openclaw-multi-session-plugins repository (macOS)" not in text: