Fix ansible lint

Ansible-lint is failing on physical-network.yml, which is a tasks file
rather than a playbook. Specify the two top-level playbooks only, and
ansible-lint will follow the includes.

Change-Id: I3499944939aa717a382d87f5c90236499539de60
This commit is contained in:
Mark Goddard 2021-03-24 10:34:36 +00:00
parent f34bb772a0
commit 945a79bc0b
1 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,8 @@ setenv = ANSIBLE_LIBRARY = {toxinidir}/ansible/action_plugins/
# Exclude roles downloaded from Galaxy (in the form 'author.role') from
# linting.
commands = bash -c "ansible-lint -vvv \
$(find {toxinidir}/ansible -path '*.yml' \
-not -path '{toxinidir}/ansible/roles/*.*/*' -print)"
{toxinidir}/ansible/deploy.yml \
{toxinidir}/ansible/teardown.yml"
[testenv:releasenotes]
deps =