-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.ansible-lint
45 lines (36 loc) · 1.18 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
---
# .ansible-lint
# You need to install ansible-lint to use this:
# pip3 install ansible-lint
profile: production
# exclude_paths included in this file are parsed relative to this file's location
# and not relative to the CWD of execution.
exclude_paths:
- collections
parseable: true
quiet: true
strict: true
verbosity: 1
# 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
# To skip a rule just enter filename and tag.
skip_list:
- deprecated-module
- package-latest # We want the latest packages installed on servers.
- role-name # Exclude role name checking because they contain a dot.
- yaml[line-length]
- yaml[truthy]
# Ansible-lint does not automatically load rules that have the 'opt-in' tag.
# You must enable opt-in rules by listing each rule 'id' below.
enable_list:
- args
- empty-string-compare # opt-in
- no-log-password # opt-in
- no-same-owner # opt-in
- name[prefix] # opt-in
- yaml
# Offline mode disables installation of requirements.yml and schema refreshing
offline: true