Skip to content

Commit

Permalink
Add support for passing arguments to ansible-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stacybrock committed May 16, 2016
1 parent a5ebb1d commit 163bc09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lint-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ echo "=> Linting Ansible Code"
fail_ansible=0
for f in `find . -name "*.yml"`; do
echo "==> LINTING $f"
ansible-lint $f
if [[ ! -z "$1" ]]; then
ansible-lint $1 $f
else
ansible-lint $f
fi
rc=$?
if [[ $rc != 0 ]]; then
echo "==> LINTING FAIL: $f"
Expand Down

0 comments on commit 163bc09

Please sign in to comment.