fix(woodpecker): Set ANSIBLE_ROLES_PATH env var for update-all pipeline
ci/woodpecker/manual/update-all Pipeline failed
ci/woodpecker/manual/build-caddy Pipeline was successful
ci/woodpecker/manual/security-scan Pipeline was successful
ci/woodpecker/manual/deploy-infrastructure Pipeline was successful

ansible.cfg is ignored in world-writable CI directories. Setting
ANSIBLE_ROLES_PATH as environment variable bypasses the issue.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 18:02:06 +01:00
co-authored by Claude Opus 4.6
parent 7a55a43315
commit 8bb6395b40
+1 -1
View File
@@ -8,6 +8,7 @@ steps:
environment:
ANSIBLE_FORCE_COLOR: "true"
ANSIBLE_HOST_KEY_CHECKING: "false"
ANSIBLE_ROLES_PATH: "../roles:./roles"
SSH_PRIVATE_KEY:
from_secret: ssh_private_key
VAULT_PASS:
@@ -24,7 +25,6 @@ steps:
- echo "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/id_ed25519
- chmod 600 ~/.ssh/id_ed25519
- printf "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null\n" > ~/.ssh/config
- chmod 700 .
- cd ansible
- echo "$VAULT_PASS" > .vault_pass && chmod 600 .vault_pass
- export ANSIBLE_VAULT_PASSWORD_FILE=.vault_pass