homeserver/.woodpecker/ansible-playbook.yml

22 lines
677 B
YAML
Raw Normal View History

---
depends_on:
- ansible-lint
steps:
ansible-playbook:
image: quay.io/ansible/creator-ee:v24.2.0
commands:
- echo $${VAULTPASS} > ./vault-pass.yml # nach des Secret in Großschreibung
- ansible-galaxy install -r requirements.yaml
2024-07-09 18:24:26 +02:00
- echo $${SSHKEY}
2024-07-09 18:22:59 +02:00
- echo $${SSHKEY} | base64 -d > ./id_ed25519
2024-07-09 18:29:26 +02:00
- echo $${SSHKEY} | base64 -d
2024-07-09 18:18:39 +02:00
- chmod 0400 ./id_ed25519
2024-07-09 18:29:26 +02:00
- ansible-playbook -vv playbooks/2_all.yml playbooks/3_service/* --limit production
# https://woodpecker-ci.org/docs/usage/secrets#use-secrets-in-commands
2024-07-09 17:57:37 +02:00
secrets: [vaultpass, sshkey]
when:
2024-07-09 17:50:23 +02:00
- event: [push, pull_request_closed]
branch: master
...