From 471d030673b2008502c3f5d83d1a16743695bcf4 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 18 Dec 2018 21:30:53 +0100 Subject: Verify Ansible playbooks via ansible-lint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id8b4553f5d36a52086433f00ce9f846a30212d66 Signed-off-by: Cédric Ollivier --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index f85078a09..793c3ca2f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = docs,pep8,pylint,yamllint,bashate,py27,perm,cover +envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,perm,cover [testenv] usedevelop = True @@ -88,6 +88,11 @@ files = commands = yamllint -s {[testenv:yamllint]files} +[testenv:ansiblelint] +basepython = python2.7 +commands = + ansible-lint ansible/site.yml + [testenv:py36] dirs = functest/tests/unit/ci -- cgit 1.2.3-korg