修复无 Vault 凭据时的 Ansible lint #79

Merged
panxiao81 merged 1 commits from fix/ansible-lint-without-vault into main 2026-09-16 17:58:00 +00:00
Owner

内容

  • 在一次性 CI checkout 中移除加密的 vault.yml 后再运行 ansible-lint
  • 静态检查不再依赖生产 vault 密码
  • 实际部署配置与 Git 中的加密 vault 文件保持不变

原因

ansible-lint 的 syntax-check 会自动加载 group_vars/all/vault.yml。Runner 没有 .vault_pass 时,所有相关 playbook/role 都被放大成 fatal internal-error;现有 name/schema/yaml/jinja 项仍按 .ansible-lint 的 warn_list 非阻断显示。

## 内容 - 在一次性 CI checkout 中移除加密的 `vault.yml` 后再运行 `ansible-lint` - 静态检查不再依赖生产 vault 密码 - 实际部署配置与 Git 中的加密 vault 文件保持不变 ## 原因 `ansible-lint` 的 syntax-check 会自动加载 `group_vars/all/vault.yml`。Runner 没有 `.vault_pass` 时,所有相关 playbook/role 都被放大成 fatal `internal-error`;现有 `name/schema/yaml/jinja` 项仍按 `.ansible-lint` 的 `warn_list` 非阻断显示。
panxiao81 added 1 commit 2026-09-16 17:49:36 +00:00
修复无 Vault 凭据时的 Ansible lint
yaml / yaml (pull_request) Successful in 22s
ansible / collection-test (pull_request) Successful in 1m12s
ansible / lint (pull_request) Successful in 2m17s
b6b4efe48f
panxiao81 merged commit b617b4bc23 into main 2026-09-16 17:58:00 +00:00
panxiao81 deleted branch fix/ansible-lint-without-vault 2026-09-16 17:58:01 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/homelab-infra#79