nrec-ansible/.woodpecker.yml

16 lines
339 B
YAML
Raw Normal View History

2022-01-10 20:59:35 +00:00
pipeline:
run-playbooks:
image: quay.io/ansible/ansible-runner:latest
2022-01-10 21:04:31 +00:00
environment:
- RUNNER_PLAYBOOK=ping.yml
2022-01-10 21:23:30 +00:00
commands:
- mkdir env
2022-01-10 21:33:01 +00:00
- echo $SSH_KEY | base64 -d > env/ssh_key
2022-01-10 21:27:06 +00:00
- md5sum env/ssh_key
2022-01-10 21:23:30 +00:00
- ansible-runner run `pwd`
2022-01-10 21:18:31 +00:00
secrets: [ssh_key]
2022-01-10 21:04:31 +00:00
2022-01-10 20:59:35 +00:00
when:
branch: master
event: push