Adding pre-commit hooks for ansible linting
Some checks failed
Ansible Linting / build (push) Failing after 20s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 21s
Wiki Resources Sanity Checks / ruff-checks (push) Successful in 7s

This commit is contained in:
2026-04-25 22:41:56 -07:00
parent 5ee16b4766
commit c44babf3d8
2 changed files with 27 additions and 0 deletions

6
.gitignore vendored
View File

@@ -24,3 +24,9 @@ infra/**/tfplan
.ansible/ .ansible/
wiki-resources/public_infrastructure.png wiki-resources/public_infrastructure.png
bin/
lib/
lib64
pyvenv.cfg
share/

21
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,21 @@
---
repos:
- repo: https://github.com/ansible/ansible-lint
rev: v26.4.0
hooks:
- id: ansible-lint
name: ansible-lint
description: Run ansible-lint on playbooks
entry: ansible-lint
args:
- ansible
language: python
exclude: |
(?x)(
^deprecated/|
^infra/|
^runbooks/|
^wiki-resources/|
^\.pre-commit-config.yaml|
^\.gitignore
)