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. Change-Id: If65edf748b73ff601b3d042b300787284d07e049
This commit is contained in:
parent
c6ae9f52a4
commit
2163671a7b
7
tox.ini
7
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]
|
||||
|
|
Loading…
Reference in New Issue