Fix linters for tripleo-ci

Ansible-lint fails after ansible 2.10 was released,
limit its dependency to ansible 2.9
Change-Id: I54c2443be11a9bd86b8e8981fbf3a540a5105362
This commit is contained in:
Sagi Shnaidman 2020-09-23 16:19:29 +03:00
parent 019f2fe184
commit 820e3fe31e
3 changed files with 12 additions and 2 deletions

View File

@ -5,4 +5,6 @@ quiet: false
skip_list:
- ANSIBLE0010 # Package installs should not use latest.
- 602 # Due to https://github.com/ansible/ansible-lint/issues/457
- 208 # [E208]
- 106 # [E106]
verbosity: 1

View File

@ -37,7 +37,7 @@ repos:
# types: [file, yaml]
# entry: yamllint --strict -f parsable
- repo: https://github.com/ansible/ansible-lint.git
rev: v4.1.1a6
rev: v4.3.5
hooks:
- id: ansible-lint
always_run: true
@ -46,7 +46,9 @@ repos:
# results when called with individual files.
# https://github.com/ansible/ansible-lint/issues/611
verbose: true
entry: env ANSIBLE_LIBRARY=./library ansible-lint --force-color -p -v
entry: env ANSIBLE_LIBRARY=./library ansible-lint --force-color -p -v .
additional_dependencies:
- 'ansible<2.10'
- repo: https://github.com/openstack-dev/bashate.git
rev: 0.6.0
hooks:

View File

@ -78,6 +78,9 @@
- tox.ini
- ^setup.*$
- ^vars/sova-patterns.yml$
- ^.ansible-lint$
- ^.pre-commit-config.yaml$
- ^.yamllint$
# This job definition holds the required projects
# for tripleo-ci-base-centos-8. The required projects are separated
@ -135,6 +138,9 @@
- tox.ini
- ^setup.*$
- ^vars/sova-patterns.yml$
^.ansible-lint$
- ^.pre-commit-config.yaml$
- ^.yamllint$
- job:
name: tripleo-ci-base-multinode