Fix ansible-lint issue
There are failures with ansible-lint. https://zuul.opendev.org/t/openstack/build/b89f36f3bd534733b2337a661bc090e5 This patch fixes the issue Change-Id: I1249aa48837df422379e3b3daa17d3a67f1ef336
This commit is contained in:
parent
1720d3ce11
commit
865e85a277
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
parseable: true
|
parseable: true
|
||||||
|
profile: min
|
||||||
skip_list:
|
skip_list:
|
||||||
- '102'
|
- '102'
|
||||||
- '106'
|
- '106'
|
||||||
@ -18,4 +19,13 @@ skip_list:
|
|||||||
- ANSIBLE0012
|
- ANSIBLE0012
|
||||||
exclude_paths:
|
exclude_paths:
|
||||||
- .zuul.yaml
|
- .zuul.yaml
|
||||||
|
- rally
|
||||||
|
# Temporarily disable linting on these existing playbooks as syntax errors are reported
|
||||||
|
# in them with ansible-lint rev 6.17.2.
|
||||||
|
- ansible/oooq
|
||||||
|
- ansible/gather/stockpile.yml
|
||||||
|
- ansible/logs/get-overcloud-logs.yml
|
||||||
|
- ansible/browbeat/install-at.yml
|
||||||
|
- ansible/common_logging/install_logging.yml
|
||||||
|
- ocp_on_osp/ocp_cleanup.yml
|
||||||
use_default_rules: true
|
use_default_rules: true
|
||||||
|
@ -9,11 +9,12 @@ repos:
|
|||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- repo: https://github.com/ansible/ansible-lint
|
- repo: https://github.com/ansible/ansible-lint
|
||||||
rev: v4.3.5
|
rev: v6.17.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: ansible-lint
|
- id: ansible-lint
|
||||||
files: 'ansible/.(yaml|yml)$'
|
always_run: true
|
||||||
exclude: ^(rally/|\.zuul\.yml)
|
pass_filenames: false
|
||||||
entry: ansible-lint --force-color -v
|
entry: ansible-lint --force-color -v
|
||||||
additional_dependencies:
|
additional_dependencies:
|
||||||
- rich<11.0.0
|
- ansible-core
|
||||||
|
- yamllint
|
||||||
|
4
requirements.yml
Normal file
4
requirements.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
collections:
|
||||||
|
- name: community.general
|
||||||
|
- name: ansible.posix
|
Loading…
Reference in New Issue
Block a user