DOKK / manpages / debian 10 / ansible-lint / ansible-lint.1.en
ANSIBLE-LINT(1) System administration commands ANSIBLE-LINT(1)

ansible-lint - lint tool for Ansible playbooks

ansible-lint [-M module_path] [-l] [-s] [module...]

ansible-lint checks Ansible playbooks for practices and behaviour that could potentially be improved.


show program’s version number and exit


the DIRECTORY search path to load modules from. The default is /usr/share/ansible. This can also be set with the ANSIBLE_LIBRARY environment variable.

-s, --snippet=

Produce a snippet which can be copied into a playbook for modification, like a kind of task template.

-l, --list=

Produce a terse listing of modules and a short description of each.

-h, --help

show this help message and exit


list all the rules


quieter, although not silent output


parseable output in the format of pep8


specify one or more rules directories using one or more -r arguments. Any -r flags override the default rules in /usr/local/lib/python3.5/dist-packages/ansiblelint/rules, unless -R is also used.


Use default rules in /usr/local/lib/python3.5/dist-packages/ansiblelint/rules in addition to any extra rules directories specified with -r. There is no need to specify this if no -r flags are used


only check rules whose id/tags match these values


list all the tags


Increase verbosity level


only check rules whose id/tags do not match these values


disable colored output


Try force colored output (relying on ansible’s code)


path to directories or files to skip. This option is repeatable.

ansible-lint was originally written by Will Thames

Copyright © 2013-2016 Will Thames <>

ansible-lint is released under the terms of the MIT License.

ansible-playbook(1), ansible(1)

08/12/2017 ansible-lint