Files
infrastructure/.drone.yml
Accendit 008d263f34
All checks were successful
continuous-integration/drone/push Build is passing
Adjusted CI pipeline
2020-05-11 22:47:32 +02:00

34 lines
699 B
YAML

kind: pipeline
type: docker
name: provision devices
steps:
- name: install Ansible and execute playbook
image: python:latest
commands:
- pip install pipenv
- python3 -m pipenv install --system
- ansible-playbook site.yml -i inventory.yml
when:
branch:
- master
event:
- push
---
kind: pipeline
type: docker
name: run Ansible check
steps:
- name: install Ansible and execute playbook with Check flag
image: python:latest
commands:
- pip install pipenv
- python3 -m pipenv install --system
- ansible-playbook site.yml -i inventory.yml --check
when:
branch:
- development
event:
- push