From 2513a1b51972d65c366147be70a4060c9cad0d2d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 11 Mar 2020 15:54:52 -0500 Subject: [PATCH] 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 --- .ansible-lint | 1 - tox.ini | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.ansible-lint b/.ansible-lint index f12cbf4a38..61a658373b 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,5 +1,4 @@ parseable: true -quiet: true # ANSIBLE0010: Package installs should not use latest # We often deploy latest pip packages # diff --git a/tox.ini b/tox.ini index bfd7bbecf6..4f4e5c83e0 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ commands = # 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'" 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] commands = {posargs}