From b6b4efe48f39ea966589edf81f29b7a6cdcf2da2 Mon Sep 17 00:00:00 2001 From: panxiao81 Date: Wed, 16 Sep 2026 17:49:35 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=20Vault=20=E5=87=AD?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E7=9A=84=20Ansible=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ansible.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ansible.yml b/.gitea/workflows/ansible.yml index 66382db..f7de2b1 100644 --- a/.gitea/workflows/ansible.yml +++ b/.gitea/workflows/ansible.yml @@ -51,6 +51,11 @@ jobs: run: | export PATH="$HOME/.local/bin:$PATH" export ANSIBLE_COLLECTIONS_PATH="$PWD/infrastructure/samba-ad/ansible/collections:/root/.ansible/collections" + # 静态检查不应依赖生产 vault 凭据。一次性 checkout 可以去掉加密变量文件; + # syntax-check 只验证结构,不需要解析变量的运行时值。 + rm -f \ + infrastructure/openbao/ansible/group_vars/all/vault.yml \ + infrastructure/samba-ad/ansible/group_vars/all/vault.yml rc=0 for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do echo "::group::$p"