Merge pull request '修复无 Vault 凭据时的 Ansible lint' (#79) from fix/ansible-lint-without-vault into main
Reviewed-on: #79
This commit was merged in pull request #79.
This commit is contained in:
@@ -51,6 +51,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
export ANSIBLE_COLLECTIONS_PATH="$PWD/infrastructure/samba-ad/ansible/collections:/root/.ansible/collections"
|
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
|
rc=0
|
||||||
for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do
|
for p in infrastructure/openbao infrastructure/samba-ad infrastructure/proxmox; do
|
||||||
echo "::group::$p"
|
echo "::group::$p"
|
||||||
|
|||||||
Reference in New Issue
Block a user