Fixed linting in CI

This commit is contained in:
Bastian de Byl
2020-09-25 15:01:26 -04:00
parent 6d81ddde2d
commit 3d8b7024e4
2 changed files with 8 additions and 4 deletions

View File

@@ -10,7 +10,4 @@ steps:
- name: lint
image: bdebyl/yamllint
command:
- export YML_FILES=$(find ansible/ -name '*.yml' -not -name '*vault*')
- source $PWD/.lint-vars.sh
- ansible-lint -x $ANSIBLE_LINT_SKIP_LIST $YML_FILES
- yamllint $YML_FILES
- .lint.sh

7
.lint.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
export YML_FILES="$(find ansible/ -name '*.yml' -not -name '*vault*')"
# Source the lint variables file (shared with Makefile)
. ./.lint-vars.sh
ansible-lint -x "$ANSIBLE_LINT_SKIP_LIST" $YML_FILES
yamllint $YML_FILES