2020-01-14 23:15:13 +00:00
|
|
|
---
|
|
|
|
title: Default settings
|
|
|
|
---
|
|
|
|
|
2021-10-10 13:50:59 +00:00
|
|
|
The default configuration is used if no other value is specified. Each option can be [overridden](/configuration/) in several ways.
|
|
|
|
|
2020-06-03 14:23:46 +00:00
|
|
|
<!-- prettier-ignore-start -->
|
|
|
|
<!-- markdownlint-disable -->
|
2020-06-07 14:39:14 +00:00
|
|
|
<!-- spellchecker-disable -->
|
2020-01-14 23:15:13 +00:00
|
|
|
{{< highlight YAML "linenos=table" >}}
|
|
|
|
---
|
|
|
|
ansible:
|
2020-06-27 20:33:51 +00:00
|
|
|
# Add the name of used custom Ansible modules. Otherwise ansible-later
|
2023-11-15 20:07:55 +00:00
|
|
|
# can't detect unknown modules and will throw an error.
|
2020-06-27 20:33:51 +00:00
|
|
|
# Modules which are bundled with the role and placed in a './library'
|
|
|
|
# directory will be auto-detected and don't need to be added to this list.
|
2020-01-14 23:15:13 +00:00
|
|
|
custom_modules: []
|
2021-02-01 19:27:00 +00:00
|
|
|
|
2024-01-27 18:56:35 +00:00
|
|
|
# Settings for variable formatting rule (ANS104)
|
2020-01-14 23:15:13 +00:00
|
|
|
double-braces:
|
|
|
|
max-spaces-inside: 1
|
|
|
|
min-spaces-inside: 1
|
|
|
|
|
2024-01-27 18:56:35 +00:00
|
|
|
# List of allowed literal bools (ANS114)
|
2021-10-07 20:59:39 +00:00
|
|
|
literal-bools:
|
|
|
|
- "True"
|
|
|
|
- "False"
|
|
|
|
- "yes"
|
|
|
|
- "no"
|
|
|
|
|
2024-01-27 18:56:35 +00:00
|
|
|
# List of modules that don't need to be named (ANS106).
|
2021-10-10 20:59:52 +00:00
|
|
|
# You must specify each individual module name, globs or wildcards do not work!
|
|
|
|
named-task:
|
2021-10-10 16:30:40 +00:00
|
|
|
exclude:
|
|
|
|
- "meta"
|
|
|
|
- "debug"
|
2024-01-31 21:49:19 +00:00
|
|
|
- "block/always/rescue"
|
2021-10-10 16:30:40 +00:00
|
|
|
- "include_role"
|
|
|
|
- "include_tasks"
|
|
|
|
- "include_vars"
|
|
|
|
- "import_role"
|
|
|
|
- "import_tasks"
|
|
|
|
|
2024-01-27 18:56:35 +00:00
|
|
|
# List of modules that are allowed to use the key=value format instead of the native YAML format (YML108).
|
2021-10-10 20:59:52 +00:00
|
|
|
# You must specify each individual module name, globs or wildcards do not work!
|
|
|
|
native-yaml:
|
|
|
|
exclude: []
|
|
|
|
|
2020-01-14 23:15:13 +00:00
|
|
|
# Global logging configuration
|
|
|
|
# If you would like to force colored output (e.g. non-tty)
|
2020-06-03 14:23:46 +00:00
|
|
|
# set environment variable `PY_COLORS=1`
|
2020-01-14 23:15:13 +00:00
|
|
|
logging:
|
2020-06-03 14:23:46 +00:00
|
|
|
# You can enable JSON logging if a parsable output is required
|
2020-01-14 23:15:13 +00:00
|
|
|
json: False
|
2021-02-01 19:27:00 +00:00
|
|
|
|
2020-01-14 23:15:13 +00:00
|
|
|
# Possible options debug | info | warning | error | critical
|
|
|
|
level: "warning"
|
|
|
|
|
|
|
|
# Global settings for all defined rules
|
|
|
|
rules:
|
2024-01-25 20:40:15 +00:00
|
|
|
# Disable built-in rules if required
|
|
|
|
builtin: True
|
2021-02-01 19:27:00 +00:00
|
|
|
|
|
|
|
# List of files to exclude
|
2020-01-14 23:15:13 +00:00
|
|
|
exclude_files: []
|
|
|
|
# Examples:
|
|
|
|
# - molecule/
|
|
|
|
# - files/**/*.py
|
|
|
|
|
|
|
|
# Limit checks to given rule ID's
|
|
|
|
# If empty all rules will be used.
|
|
|
|
filter: []
|
|
|
|
|
|
|
|
# Exclude given rule ID's from checks
|
|
|
|
exclude_filter: []
|
2020-06-03 14:23:46 +00:00
|
|
|
|
2021-10-10 15:00:44 +00:00
|
|
|
# List of rule ID's that should be displayed as a warning instead of an error. By default,
|
2024-01-25 20:40:15 +00:00
|
|
|
# no rules are marked as warnings. This list allows to degrade errors to warnings for each rule.
|
2021-10-10 15:00:44 +00:00
|
|
|
warning_filter:
|
2024-01-29 07:34:08 +00:00
|
|
|
- "ANS128"
|
2024-01-27 18:56:35 +00:00
|
|
|
- "ANS999"
|
2021-10-10 15:00:44 +00:00
|
|
|
|
2020-01-14 23:15:13 +00:00
|
|
|
# All dotfiles (including hidden folders) are excluded by default.
|
|
|
|
# You can disable this setting and handle dotfiles by yourself with `exclude_files`.
|
|
|
|
ignore_dotfiles: True
|
2021-02-01 19:27:00 +00:00
|
|
|
|
2024-01-25 20:40:15 +00:00
|
|
|
# List of directories to load rules from (defaults to built-in)
|
|
|
|
dir: []
|
2020-01-14 23:15:13 +00:00
|
|
|
|
2020-06-03 14:23:46 +00:00
|
|
|
# Block to control included yamllint rules.
|
2020-01-14 23:15:13 +00:00
|
|
|
# See https://yamllint.readthedocs.io/en/stable/rules.html
|
|
|
|
yamllint:
|
|
|
|
colons:
|
|
|
|
max-spaces-after: 1
|
|
|
|
max-spaces-before: 0
|
|
|
|
document-start:
|
|
|
|
present: True
|
2024-02-01 11:30:50 +00:00
|
|
|
document-end:
|
|
|
|
present: True
|
2020-01-14 23:15:13 +00:00
|
|
|
empty-lines:
|
|
|
|
max: 1
|
|
|
|
max-end: 1
|
|
|
|
max-start: 0
|
|
|
|
hyphens:
|
|
|
|
max-spaces-after: 1
|
|
|
|
indentation:
|
|
|
|
check-multi-line-strings: False
|
|
|
|
indent-sequences: True
|
|
|
|
spaces: 2
|
|
|
|
{{< /highlight >}}
|
2020-06-07 14:39:14 +00:00
|
|
|
<!-- spellchecker-enable -->
|
2020-06-03 14:23:46 +00:00
|
|
|
<!-- markdownlint-restore -->
|
|
|
|
<!-- prettier-ignore-end -->
|