diff --git a/roles/vhosts/xworkmate_bridge/defaults/main.yml b/roles/vhosts/xworkmate_bridge/defaults/main.yml index ce2bd0b..3695014 100644 --- a/roles/vhosts/xworkmate_bridge/defaults/main.yml +++ b/roles/vhosts/xworkmate_bridge/defaults/main.yml @@ -23,7 +23,11 @@ xworkmate_bridge_service_environment: BRIDGE_AUTH_TOKEN: "{{ xworkmate_bridge_effective_auth_token | default(xworkmate_bridge_auth_token) }}" BRIDGE_REVIEW_AUTH_TOKEN: "{{ xworkmate_bridge_effective_review_auth_token | default(xworkmate_bridge_review_auth_token) }}" BRIDGE_CONFIG_PATH: "{{ xworkmate_bridge_config_file }}" -xworkmate_bridge_openclaw_gateway_max_active: 5 + IMAGE: "{{ xworkmate_bridge_effective_runtime_image_ref | default(xworkmate_bridge_runtime_image_ref) }}" + XWORKMATE_BRIDGE_OPENCLAW_GATEWAY_MAX_ACTIVE: "{{ xworkmate_bridge_openclaw_gateway_max_active }}" + XWORKMATE_BRIDGE_OPENCLAW_GATEWAY_MAX_QUEUED: "{{ xworkmate_bridge_openclaw_gateway_max_queued }}" + XWORKMATE_BRIDGE_OPENCLAW_GATEWAY_QUEUE_TIMEOUT: "{{ xworkmate_bridge_openclaw_gateway_queue_timeout }}" +xworkmate_bridge_openclaw_gateway_max_active: 2 xworkmate_bridge_openclaw_gateway_max_queued: 20 xworkmate_bridge_openclaw_gateway_queue_timeout: 10m xworkmate_bridge_distributed_topology: "" diff --git a/test.yml b/test.yml new file mode 100644 index 0000000..d7f90d6 --- /dev/null +++ b/test.yml @@ -0,0 +1,10 @@ +- hosts: localhost + tasks: + - name: test + command: npm -v + environment: + PATH: "/Users/shenlan/.local/bin:/Users/shenlan/.npm-global/bin:/Users/shenlan/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin" + become: true + become_user: shenlan + register: out + - debug: var=out.stdout