fix(ci): 为 Ansible lint 提供临时 Vault 占位文件
yaml / yaml (pull_request) Successful in 28s
terraform / validate (pull_request) Successful in 36s
ansible / collection-test (pull_request) Successful in 1m24s
ansible / lint (pull_request) Successful in 3m11s

This commit is contained in:
2026-09-16 18:37:59 +00:00
parent 5241eceb0c
commit 65a72ce7fa
+5
View File
@@ -56,6 +56,11 @@ jobs:
rm -f \
infrastructure/openbao/ansible/group_vars/all/vault.yml \
infrastructure/samba-ad/ansible/group_vars/all/vault.yml
# ansible.cfg still declares vault_password_file. Even with encrypted
# vars removed, ansible-lint validates that the configured file exists
# before syntax-check starts. This throwaway value decrypts nothing.
export ANSIBLE_VAULT_PASSWORD_FILE="$RUNNER_TEMP/ansible-lint-vault-pass"
printf '%s\n' 'ci-placeholder-not-a-production-secret' > "$ANSIBLE_VAULT_PASSWORD_FILE"
rc=0
for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do
echo "::group::$p"