nrec-ansible/.woodpecker.yml

16 lines
324 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
- echo $SSH_KEY > env/ssh_key
2022-01-10 21:24:28 +00:00
- cat 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