diff --git a/tox.ini b/tox.ini index b72d14f2..4e700b53 100644 --- a/tox.ini +++ b/tox.ini @@ -30,11 +30,11 @@ commands = # Ansible Lint Check # NOTE(pabelanger): Ignore the following checks: # ANSIBlE0012: Commands should not change things if nothing needs doing - bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -not -path './legacy/*' -print0 | xargs -t -0 \ - ansible-lint -x ANSIBLE0012" + bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -not -path './legacy/*' -exec \ + ansible-lint -x ANSIBLE0012 \{\} +" # Ansible Syntax Check - bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -print0 | xargs -t -0 \ - ansible-playbook --syntax-check -i {toxinidir}/tests/inventory > /dev/null" + bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -exec \ + ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null" [testenv:venv] commands = {posargs}