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:
parent
b64a0df195
commit
13f82560cf
11
tox.ini
11
tox.ini
@ -92,8 +92,8 @@ commands =
|
|||||||
[testenv:ansible]
|
[testenv:ansible]
|
||||||
deps =
|
deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
ansible==2.2.0
|
ansible==2.3.0.0
|
||||||
ansible-lint<=3.4.1
|
ansible-lint<=3.4.12
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
ANSIBLE_HOST_KEY_CHECKING = False
|
ANSIBLE_HOST_KEY_CHECKING = False
|
||||||
@ -106,9 +106,10 @@ setenv =
|
|||||||
ANSIBLE_ROLES_PATH = {homedir}/.ansible/roles
|
ANSIBLE_ROLES_PATH = {homedir}/.ansible/roles
|
||||||
commands =
|
commands =
|
||||||
rm -rf {homedir}/.ansible/roles
|
rm -rf {homedir}/.ansible/roles
|
||||||
ansible-galaxy install \
|
ansible-playbook -i 'localhost,' \
|
||||||
--role-file={toxinidir}/ansible-role-requirements.yml \
|
-e role_file={toxinidir}/ansible-role-requirements.yml \
|
||||||
--force
|
-e role_path_default={homedir}/.ansible/roles \
|
||||||
|
{toxinidir}/tests/get-ansible-role-requirements.yml
|
||||||
|
|
||||||
|
|
||||||
[testenv:ansible-lint]
|
[testenv:ansible-lint]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user