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:29:14 +00:00
|
|
|
- find .
|
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
|