ansible-role-drone/.drone.yml

14 lines
570 B
YAML
Raw Normal View History

2020-10-26 09:26:25 +00:00
---
kind: pipeline
type: exec
name: default
steps:
- name: install dependencies
commands:
2020-10-26 09:51:39 +00:00
- dnf install -y python3 findutils
2020-10-26 09:31:57 +00:00
- pip3 install -U ansible-lint
2020-10-26 09:26:25 +00:00
- 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"