Patrick Marchand
a6213719ae
We will need to go through code and ignore any warnings we dont want to fix.
12 lines
359 B
YAML
12 lines
359 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: lint ansible scripts
|
|
image: pipelinecomponents/ansible-lint:latest
|
|
commands:
|
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
|
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"
|