From 5c1fd9ac2d6d50fbe9ac3cb4e688f43067b6cbdb Mon Sep 17 00:00:00 2001
From: Riccardo Pittau <elfosardo@gmail.com>
Date: Mon, 23 Nov 2020 11:21:13 +0100
Subject: [PATCH] Fix ansible-lint star expansion

Tox doesn't use bash, so to be able to expand the list of files
using the * character, we need to run ansible-lint under bash.

Change-Id: I413d17288d81882998ee58a156ba7abe53a592a0
---
 tox.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tox.ini b/tox.ini
index d845d39d..c53afc77 100644
--- a/tox.ini
+++ b/tox.ini
@@ -73,7 +73,7 @@ commands =
     bash -c "source {envdir}/bin/activate && {toxinidir}/tools/test-molecule.sh {posargs}"
 
 [testenv:alint]
-commands = ansible-lint ansible/*.yaml
+commands = /bin/bash -c "ansible-lint {toxinidir}/ansible/*.yml"
 
 [testenv:ansible-syntax]
 commands =
-- 
GitLab