Stop running ansible-lint on playbooks
It can't handle the following form: shell: cmd: | something Which is both valid and required. Change-Id: I14896450b16f8e65128804b44a643da63580812d
This commit is contained in:
parent
db09128dcb
commit
bf16abfd7c
5
tox.ini
5
tox.ini
@ -27,11 +27,6 @@ setenv =
|
|||||||
whitelist_externals = bash
|
whitelist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs}
|
flake8 {posargs}
|
||||||
# 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/*' -exec \
|
|
||||||
ansible-lint -x ANSIBLE0012 \{\} +"
|
|
||||||
# Ansible Syntax Check
|
# Ansible Syntax Check
|
||||||
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -exec \
|
bash -c "cd playbooks; find . -type f -regex '.*.y[a]?ml' -exec \
|
||||||
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
ansible-playbook --syntax-check -i {toxinidir}/tests/inventory \{\} + > /dev/null"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user