diff --git a/tox.ini b/tox.ini index 7904e939a0..ea1feefcdf 100644 --- a/tox.ini +++ b/tox.ini @@ -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]