1
0
forked from finallycoffee/base

meta: add ansible-lint configuration

This commit is contained in:
2026-02-04 12:25:53 +01:00
parent b994778d66
commit d4a86c667e
2 changed files with 21 additions and 0 deletions

View File

21
.config/ansible-lint.yml Normal file
View File

@@ -0,0 +1,21 @@
---
# see https://docs.ansible.com/projects/lint/configuring/#ansible-lint-configuration
profile: moderate
exclude_paths:
- ".ansible/"
# Enable checking of loop variable prefixes in roles
loop_var_prefix: "^(__|{role}_)"
# Enforce variable names to follow pattern below, in addition to Ansible own
# requirements, like avoiding python identifiers. To disable add `var-naming`
# to skip_list.
var_naming_pattern: "^[a-z_][a-z0-9_]*$"
skip_list:
- "name[template]"
enable_list:
- galaxy
- fqcn
offline: true