Add '.drone.yml'

This commit is contained in:
jens 2020-10-26 09:26:25 +00:00
parent 46db3b12b2
commit fc6f7349f5
1 changed files with 13 additions and 0 deletions

13
.drone.yml Normal file
View File

@ -0,0 +1,13 @@
---
kind: pipeline
type: exec
name: default
steps:
- name: install dependencies
commands:
- dnf install -y ansible python3-ansible-lint findutils
- name: syntax check
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
- name: ansibel lint
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"