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:
@@ -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
|
||||
|
@@ -81,3 +81,4 @@ EOF
|
||||
iptables-restore < freeipa-iptables-rules.txt
|
||||
|
||||
### ---stop_docs
|
||||
|
||||
|
Reference in New Issue
Block a user