This commit is contained in:
27
.drone.yml
27
.drone.yml
@ -3,9 +3,32 @@ type: docker
|
|||||||
name: provision devices
|
name: provision devices
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: install Ansible and execute playbook
|
||||||
image: python:latest
|
image: python:latest
|
||||||
commands:
|
commands:
|
||||||
- pip install pipenv
|
- pip install pipenv
|
||||||
- python3 -m pipenv install --system
|
- python3 -m pipenv install --system
|
||||||
- ansible-playbook site.yml -i inventory.yml
|
- 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
|
||||||
Reference in New Issue
Block a user