From 13f82560cfde57e5e80a43c27cec0a05f0514386 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Mon, 17 Apr 2017 14:37:48 -0700 Subject: [PATCH] Update ansible-lint to 3.4.12 A newer ansible-lint is required for ansible 2.3 compatibility. Roles are installed within the linters test through git clone instead of galaxy to avoid an upstream Ansible bug[0]. [0] https://github.com/ansible/ansible/issues/22572 Change-Id: I9b7bb57b60a0596912934d368aba796397e31ad0 --- tox.ini | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 435af40947..7dc6b39bfe 100644 --- a/tox.ini +++ b/tox.ini @@ -92,8 +92,8 @@ commands = [testenv:ansible] deps = {[testenv]deps} - ansible==2.2.0 - ansible-lint<=3.4.1 + ansible==2.3.0.0 + ansible-lint<=3.4.12 setenv = {[testenv]setenv} ANSIBLE_HOST_KEY_CHECKING = False @@ -106,9 +106,10 @@ setenv = ANSIBLE_ROLES_PATH = {homedir}/.ansible/roles commands = rm -rf {homedir}/.ansible/roles - ansible-galaxy install \ - --role-file={toxinidir}/ansible-role-requirements.yml \ - --force + ansible-playbook -i 'localhost,' \ + -e role_file={toxinidir}/ansible-role-requirements.yml \ + -e role_path_default={homedir}/.ansible/roles \ + {toxinidir}/tests/get-ansible-role-requirements.yml [testenv:ansible-lint]