Merge "Simplify ansible invocations in tox.ini"
This commit is contained in:
@@ -32,12 +32,11 @@ commands =
|
||||
flake8 {posargs}
|
||||
# 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 "find playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -n1 -0 \
|
||||
ansible-playbook --syntax-check -i tests/inventory 1>/dev/null"
|
||||
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
|
||||
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
Reference in New Issue
Block a user