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
This commit is contained in:
Jimmy McCrory 2017-04-17 14:37:48 -07:00
parent b64a0df195
commit 13f82560cf

11
tox.ini
View File

@ -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]