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:
Sanjay Chari 2023-06-22 11:05:26 +05:30
parent 1720d3ce11
commit 3de7ca5297
3 changed files with 11 additions and 5 deletions

View File

@ -18,4 +18,5 @@ skip_list:
- ANSIBLE0012
exclude_paths:
- .zuul.yaml
- rally
use_default_rules: true

View File

@ -9,11 +9,12 @@ repos:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/ansible/ansible-lint
rev: v4.3.5
rev: v6.17.2
hooks:
- id: ansible-lint
files: 'ansible/.(yaml|yml)$'
exclude: ^(rally/|\.zuul\.yml)
entry: ansible-lint --force-color -v
always_run: true
pass_filenames: false
entry: env ANSIBLE_PLAYBOOK_DIR=./ansible ansible-lint --force-color -v
additional_dependencies:
- rich<11.0.0
- ansible-core
- yamllint

4
requirements.yml Normal file
View File

@ -0,0 +1,4 @@
---
collections:
- name: community.general
- name: ansible.posix