metalsmith/tools/ansible-lint.sh
Riccardo Pittau f234b87bbb Add linters job
Fix lint errors to unblock CI

Change-Id: I02c1d7cc9f2f91e76d1b3edbc340df7ea83d2902
2022-07-12 10:05:31 +02:00

9 lines
276 B
Bash

#!/bin/bash
set -euxo pipefail
find playbooks -maxdepth 1 -type f -regex '.*.ya?ml' -print0 | \
xargs -t -n1 -0 ansible-lint -x metadata -vv --nocolor
find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
xargs -t -n1 ansible-lint -x metadata -vv --nocolor