fix(macOS): use dynamic variables instead of hardcoded ubuntu for hermes adapter user and paths

This commit is contained in:
Haitao Pan 2026-06-21 18:39:07 +08:00
parent ffa357ac4e
commit 04bf000c78

View File

@ -9,15 +9,15 @@ acp_hermes_bridge_build_goarch: "{{ 'arm64' if ansible_architecture in ['aarch64
acp_hermes_bridge_use_prebuilt: "{{ lookup('ansible.builtin.env', 'AI_WORKSPACE_USE_PREBUILT_BRIDGE') | default('false', true) | bool }}"
acp_hermes_listen_host: 127.0.0.1
acp_hermes_listen_port: 3920
acp_hermes_service_user: ubuntu
acp_hermes_service_group: ubuntu
acp_hermes_service_user: "{{ ansible_env.USER | default('ubuntu') }}"
acp_hermes_service_group: "{{ 'staff' if ansible_os_family == 'Darwin' else (ansible_env.USER | default('ubuntu')) }}"
acp_hermes_bridge_binary_path: /usr/local/bin/xworkmate-go-core
acp_hermes_workdir: /home/ubuntu/hermes-agent
acp_hermes_home: /home/ubuntu
acp_hermes_binary_path: /home/ubuntu/hermes-agent/venv/bin/hermes
acp_hermes_home: "{{ ansible_env.HOME | default('/home/' + acp_hermes_service_user) }}"
acp_hermes_workdir: "{{ acp_hermes_home }}/hermes-agent"
acp_hermes_binary_path: "{{ acp_hermes_workdir }}/venv/bin/hermes"
acp_hermes_args: acp
acp_hermes_xdg_config_home: /home/ubuntu/.config
acp_hermes_xdg_state_home: /home/ubuntu/.local/state
acp_hermes_xdg_config_home: "{{ acp_hermes_home }}/.config"
acp_hermes_xdg_state_home: "{{ acp_hermes_home }}/.local/state"
acp_hermes_allowed_origins:
- https://xworkmate.svc.plus
- http://localhost:*