-
Notifications
You must be signed in to change notification settings - Fork 1
/
.ansible-lint
74 lines (68 loc) · 1.68 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
---
exclude_paths:
- molecule/
- .pre-commit-config.yaml
- .github/
parseable: true
use_default_rules: true
enable_list:
# Specific to use of command and shell modules
- command-instead-of-module
- command-instead-of-shell
- deprecated-command-syntax
- inline-env-var
- no-changed-when
- risky-shell-pipe
# Related to internal implementation of the linter
- internal-error
- load-failure
- parser-error
- syntax-check
# Indicate use of features that are removed from Ansible
- deprecated-bare-vars
- deprecated-command-syntax
- deprecated-local-action
- deprecated-module
- no-jinja-when
- role-name
# Related to code-style
- no-jinja-nesting
- no-tabs
- playbook-extension
- risky-octal
- var-spacing
- yaml
# Possible indication that consequent runs would produce different results
- git-latest
- hg-latest
- no-changed-when
- package-latest
# Anti-pattern detected, likely to cause undesired behavior
- command-instead-of-module
- command-instead-of-shell
- empty-string-compare
- inline-env-var
- literal-compare
- no-handler
- no-loop-var-prefix
- no-relative-paths
- unnamed-task
- var-naming
# Invalid metadata, likely related to galaxy, collections or roles
- meta-incorrect
- meta-no-tags
- meta-video-links
- role-name
- ignore-errors
- partial-become
- syntax-check
# External linter which will also produce its own rule codes.
- yaml
warn_list:
- experimental # all rules tagged as experimental
- meta-no-info # meta/main.yml should contain relevant info
- risky-file-permissions # File permissions unset or incorrect
skip_list:
- role-name # BUG
- name[casing]
verbosity: 1