-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ansible-lint.yml
76 lines (63 loc) · 1.71 KB
/
.ansible-lint.yml
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
---
##########################
##########################
## Ansible Linter rules ##
##########################
##########################
#############################
# Exclude paths from linter #
#############################
exclude_paths:
- '.github/*'
- '.ansible-lint.yml'
- '.yaml-lint.yml'
########################
# Make output parsable #
########################
parseable: true
#######################
# Set output to quiet #
#######################
quiet: true
#####################
# Path to rules dir #
#####################
#rulesdir:
################
# Tags to skip #
################
skip_list:
- 'empty-string-compare' # Allow compare to empty string
- '204' # Allow string length greater than 160 chars
- 'no-changed-when' # False positives for running command shells
- 'command-instead-of-module' # Allow git commands for push, add, etc...
- 'command-instead-of-shell' # Allow use of shell when you want
- 'no-handler' # Allow step to run like handler
- 'git-latest' # Allow for newest git version
- 'package-latest' # Allow newest package version
- 'yaml' # skip yaml and check that with yaml lint itself
##################
# Tags to follow #
##################
#tags:
#############
# Use rules #
#############
use_default_rules: true
enable_list:
- fqcn-builtins # opt-in
- no-log-password # opt-in
#################
# Set verbosity #
#################
verbosity: 1
# List of additional kind:pattern to be added at the top of the default
# match list, first match determines the file kind.
kinds:
- playbook: "**/ansible/*.{yml,yaml}"
# - galaxy: "**/folder/galaxy.yml"
- tasks: "**/tasks/*.yml"
- vars: "**/vars/*.yml"
# - meta: "**/meta/main.yml"
- yaml: "**/*.yaml-too"
...