From aaa9583dda340e67e22cecdc6fd47314d59c2483 Mon Sep 17 00:00:00 2001 From: Bruce Becker Date: Wed, 20 Mar 2024 19:17:11 +0100 Subject: [PATCH] chore: only run ansible-lint pre-commit on playbooks Signed-off-by: Bruce Becker --- .pre-commit-config.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5275700a..a8a5f38e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,13 @@ repos: rev: v24.2.1 hooks: - id: ansible-lint + always_run: false + files: ^.*.yml + additional_dependencies: + - ansible-core>=2.16.0 args: [ - "--exclude", "standalone-runner/", - "--exclude", "examples/", "--exclude", ".pre-commit-config.yaml", - "--exclude", "roles/" + "--exclude", "roles/" # Exclude roles for now. ]