homeserver/.woodpecker/ansible-playbook.yml

23 lines
658 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 17:57:37 +02:00
- echo $${SSHKEY} > id_ed25519
- chmod 0400 id_ed25519
2024-07-09 18:08:49 +02:00
- echo "---"
- cat id_ed25519
- echo "---"
2024-07-09 17:53:31 +02:00
- ansible-playbook 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
...