-
Notifications
You must be signed in to change notification settings - Fork 3
/
.ansible-lint
101 lines (90 loc) · 2.51 KB
/
.ansible-lint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
---
# .ansible-lint
exclude_paths:
- ".git/"
# parseable: true
# quiet: true
# verbosity: 1
# Mock modules or roles in order to pass ansible-playbook --syntax-check
mock_modules: []
mock_roles: []
# 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_]*$"
use_default_rules: true
# Load custom rules from this specific folder
# rulesdir:
# - ./rule/directory/
# This makes linter to fully ignore rules/tags listed below
skip_list:
- "no-changed-when"
- "no-handler"
- "name[casing]"
- "name[template]"
- "galaxy"
# Any rule that has the 'opt-in' tag will not be loaded unless its 'id' is
# mentioned in the enable_list:
enable_list:
- "command-instead-of-module"
- "command-instead-of-shell"
- "deprecated-bare-vars"
- "deprecated-command-syntax"
- "deprecated-local-action"
- "deprecated-module"
- "empty-string-compare"
- "fqcn-builtins"
- "git-latest"
- "hg-latest"
- "ignore-errors"
- "inline-env-var"
- "internal-error"
- "literal-compare"
- "load-failure"
- "meta-incorrect"
- "meta-no-info"
- "meta-no-tags"
- "meta-video-links"
- "no-jinja-nesting"
- "no-jinja-when"
- "no-log-password"
- "no-loop-var-prefix"
- "no-relative-paths"
- "no-same-owner"
- "no-tabs"
- "package-latest"
- "parser-error"
- "partial-become"
- "playbook-extension"
- "risky-file-permissions"
- "risky-octal"
- "risky-shell-pipe"
- "role-name"
- "syntax-check"
- "unnamed-task"
- "var-naming"
- "var-spacing"
# add yaml here if you want to avoid ignoring yaml checks when yamllint
# library is missing. Normally its absence just skips using that rule.
# - yaml
# Report only a subset of tags and fully ignore any others
# tags:
# - var-spacing
# This makes the linter display but not fail for rules/tags listed below:
warn_list:
- "experimental"
- "jinja[invalid]"
- "jinja[spacing]"
- "key-order[task]"
# Offline mode disables installation of requirements.yml
offline: false
# Define required Ansible's variables to satisfy syntax check
extra_vars: {}
# Uncomment to enforce action validation with tasks, usually is not
# needed as Ansible syntax check also covers it.
# skip_action_validation: false
# List of additional kind:pattern to be added at the top of the default
# match list, first match determines the file kind.
kinds: []