From c8ea844b2b31cfc0446b6174e6b033a4036b9750 Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 7 Jan 2026 11:10:37 +0100 Subject: ansible-lint: Rework validate-all-file into custom rules Test roles/ subdirectories as well (used by Zuul) In addition to that container_exec_become will also fail when "docker exec" or "podman exec" will be used instead of "{{ kolla_container_engine }} exec" Generated-By: Claude Change-Id: I75c1e48c36bb0284e2927b1cb354ce9ec47967d7 Signed-off-by: Michal Nasiadka --- .ansible-lint | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.ansible-lint') diff --git a/.ansible-lint b/.ansible-lint index 2e1a9d6f9..9790df05b 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -1,13 +1,13 @@ --- exclude_paths: - releasenotes - - roles - tests - zuul.d +rulesdir: + - .ansible-lint-rules/ # NOTE(mnasiadka): Switched to false due to rules skipped via .ansible-lint-ignore causing # failures strict: false -use_default_rules: true skip_list: # disable experimental rules - experimental @@ -16,5 +16,9 @@ skip_list: - fqcn-builtins # FQCNs again, now for module actions - fqcn[action] + # Role names + - role-name - var-naming[no-role-prefix] - yaml[line-length] + +use_default_rules: true -- cgit v1.2.3