Merge "Use standard ansible-lint config file"

This commit is contained in:
Zuul 2019-07-31 20:44:04 +00:00 committed by Gerrit Code Review
commit a734d09e8b
2 changed files with 7 additions and 3 deletions

5
.ansible-lint Normal file
View File

@ -0,0 +1,5 @@
---
parseable: true
skip_list:
# [ANSIBLE0012] Commands should not change things if nothing needs doing
- ANSIBLE0012

View File

@ -36,11 +36,10 @@ whitelist_externals = bash
commands =
flake8 {posargs}
# Ansible lint
# [ANSIBLE0012] Commands should not change things if nothing needs doing
bash -c "find playbooks -type f -regex '.*.ya?ml' -print0 | \
xargs -t -n1 -0 ansible-lint -xANSIBLE0012"
xargs -t -n1 -0 ansible-lint"
bash -c 'find roles -maxdepth 1 -mindepth 1 -type d -printf "%p/\n" | \
xargs -t -n1 ansible-lint -xANSIBLE0012'
xargs -t -n1 ansible-lint'
# Ansible Syntax Check
bash -c "find playbooks -type f -regex '.*.ya?ml' -exec \
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \