Fix ansible-lint.sh to check playbooks

Playbooks were not checked with ansible-lint

Change-Id: I0a465e85550f1541051db8cbf7e76283fd0b8ee7
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud
2017-03-16 14:49:05 +01:00
parent 5e1463d84a
commit d6e9333dbf
2 changed files with 2 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ SKIPLIST="ANSIBLE0006,ANSIBLE0007,ANSIBLE0010,ANSIBLE0012,ANSIBLE0013,ANSIBLE001
# lint the playbooks separately to avoid linting the roles multiple times
pushd playbooks
for playbook in `find . -type f -regex '.*\.y[a]?ml' -print0`; do
for playbook in `find . -type f -regex '.*\.y[a]?ml'`; do
ansible-lint -vvv -x $SKIPLIST $playbook || lint_error=1
done
popd

View File

@@ -81,3 +81,4 @@ EOF
iptables-restore < freeipa-iptables-rules.txt
### ---stop_docs