Skip to content

ANSIBLE

Linters

Linter Additional
ansible-lint
ANSIBLE_ANSIBLE_LINT
GitHub stars sarif

Linted files

  • File extensions:
    • .yml
    • .yaml

Configuration in MegaLinter

Variable Description Default value
ANSIBLE_PRE_COMMANDS List of bash commands to run before the linters None
ANSIBLE_POST_COMMANDS List of bash commands to run after the linters None
ANSIBLE_FILTER_REGEX_INCLUDE Custom regex including filter
ANSIBLE_FILTER_REGEX_EXCLUDE Custom regex excluding filter