From 4f18f357be27ab4b275de63da36ab8a497038cf6 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Wed, 12 Jul 2023 12:51:27 -0600 Subject: [PATCH] ci: ansible-lint - ignore var-naming[no-role-prefix] ansible-lint has recently added a check for this. It flags a lot of our test code, and some of our role code that uses nested roles. There is no easy way to disable it for these cases only. It would be a tremendous amount of work to add `# noqa` comments everywhere. The use of `.ansible-lint-ignore` would be a maintenance burden (cannot use tests/tests_*.yml or other similar wildcard to match all test files), would still issue a lot of warning messages, and would not solve all of the problems. The only way for now is to skip this rule. Signed-off-by: Rich Megginson --- .ansible-lint | 1 + 1 file changed, 1 insertion(+) diff --git a/.ansible-lint b/.ansible-lint index 22bbebb..44864f5 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -14,6 +14,7 @@ kinds: - playbook: "**/examples/*.yml" skip_list: - fqcn-builtins + - var-naming[no-role-prefix] exclude_paths: - tests/roles/ - .github/