Simplify ansible-lint invocation
We have no legacy files in here, so no need to skip them.
Also, sync invocations of ansible lint and ansible syntax checks.
@@ -34,11 +34,10 @@ passenv =
commands =
# Ansible lint
# [ANSIBLE0012] Commands should not change things if nothing needs doing
- bash -c "find playbooks -type d -name "legacy" -prune -o \
- -type f -regex '.*.y[a]ml' -print0 | xargs -t -n1 -0 \
- ansible-lint -xANSIBLE0012"
+ bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
+ xargs -t -n1 -0 ansible-lint -xANSIBLE0012"
# Ansible Syntax Check
- bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -exec \
+ bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
[testenv:gerrit]
