16 lines
327 B
YAML
16 lines
327 B
YAML
pipeline:
|
|
run-playbooks:
|
|
image: quay.io/ansible/ansible-runner:latest
|
|
environment:
|
|
- RUNNER_PLAYBOOK=ping.yml
|
|
commands:
|
|
- mkdir env
|
|
- echo $SSH_KEY > env/ssh_key
|
|
- md5sum env/ssh_key
|
|
- ansible-runner run `pwd`
|
|
secrets: [ssh_key]
|
|
|
|
when:
|
|
branch: master
|
|
event: push
|