fix: wait safely for apt locks

This commit is contained in:
Haitao Pan 2026-06-15 14:32:24 +08:00
parent 437d50c095
commit 3793143466
10 changed files with 30 additions and 3 deletions

View File

@ -3,7 +3,9 @@
hosts: "{{ qmd_hosts | default('all') }}"
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/vhosts/qmd/
tags: [qmd]

View File

@ -3,6 +3,9 @@
hosts: "{{ gateway_openclaw_hosts | default('all') }}"
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/vhosts/gateway_openclaw/
tags: [gateway_openclaw, openclaw]

View File

@ -10,6 +10,9 @@
hosts: "{{ xworkmate_bridge_hosts | default('all') }}"
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/vhosts/acp_server_codex/
tags: [acp_codex]

View File

@ -37,9 +37,10 @@
## TODO
- [ ] 等待并核对 `xworkspace-console` 的离线包 GitHub Actions 发布链路,确认 `publish-release` 完整结束且 release 产物上传成功。
- [x] 等待并核对 `xworkspace-console` 的离线包 GitHub Actions 发布链路,确认 `publish-release` 完整结束且 release 产物上传成功。
- [ ] 继续核对 `root@acp-bridge.onwalk.net` 的远程部署进度,确认 `setup-ai-workspace-all-in-one.sh` 最终完成并输出统一摘要。
- [ ] `setup-ai-workspace-all-in-one.sh` 在目标主机上优先使用离线安装包加速部署,减少在线拉取与安装耗时。
- [x] `setup-ai-workspace-all-in-one.sh` 在目标主机上优先使用离线安装包加速部署,减少在线拉取与安装耗时。
- [ ] 验证 `setup-ai-workspace-all-in-one.sh` 幂等性:同一主机连续执行两次均成功,复用凭据、离线包缓存与已导入镜像,并安全等待部署/APT 锁。
- [ ] 完成最终验收核对Bridge 对外可达、其余服务默认仅本地监听、`acp-codex` / `opencode` / `gemini` / `hermes` / `qmd` / `litellm` 状态正常。
- [ ] 记录最终提交哈希与远端验证结果,回填到本计划的交付结果部分。

View File

@ -3,6 +3,9 @@
hosts: all
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/ai_agent_runtime/
when: ai_agent_runtime_enabled | default(true) | bool

View File

@ -2,5 +2,8 @@
hosts: all
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- roles/vhosts/nodejs/

View File

@ -3,6 +3,9 @@
hosts: all
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/vhosts/postgres
tags: [postgresql]

View File

@ -3,6 +3,9 @@
hosts: all
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
roles:
- role: roles/vhosts/vault/
tags: [vault]

View File

@ -3,6 +3,9 @@
hosts: all
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
vars:
xworkspace_console_enable_xrdp: false
tasks:

View File

@ -3,6 +3,9 @@
hosts: "{{ xworkspace_console_hosts | default('all') }}"
become: true
gather_facts: true
module_defaults:
ansible.builtin.apt:
lock_timeout: "{{ ai_workspace_apt_lock_timeout | default(900) | int }}"
vars:
xworkspace_console_user: ubuntu
xworkspace_console_public_access: false