Go back to using find with ansible-lint

ansible-lints ability to find ansible files is less than
good. Go back to find - but leave the config in the .ansible-lint
file since that does clean up the command invocation.

While we're there - turn off quiet - let's be loud.

Change-Id: Ie495e3d9ff1b82e84069e07c60c7217fc8399a1c
This commit is contained in:
Monty Taylor 2020-03-11 15:54:52 -05:00
parent 9e394d24d0
commit 2513a1b519
2 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
parseable: true parseable: true
quiet: true
# ANSIBLE0010: Package installs should not use latest # ANSIBLE0010: Package installs should not use latest
# We often deploy latest pip packages # We often deploy latest pip packages
# #

View File

@ -23,7 +23,7 @@ commands =
# parses, but doesn't do anything. # parses, but doesn't do anything.
bash -c "ANSIBLE_INVENTORY_PLUGINS=./playbooks/roles/install-ansible/files/inventory_plugins ansible -i ./inventory/openstack.yaml not_a_host -a 'true'" bash -c "ANSIBLE_INVENTORY_PLUGINS=./playbooks/roles/install-ansible/files/inventory_plugins ansible -i ./inventory/openstack.yaml not_a_host -a 'true'"
python3 -m unittest playbooks/roles/install-ansible/files/inventory_plugins/test_yamlgroup.py python3 -m unittest playbooks/roles/install-ansible/files/inventory_plugins/test_yamlgroup.py
ansible-lint playbooks roles bash -c "find roles playbooks -type f -regex '.*.y[a]?ml' -print0 | xargs -t -n1 -0 ansible-lint"
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}