ansible-playbooks/.ansible-lint
Al Bailey 2850e2267a Add in the ability to call ansible-lint from tox.
The list of all ansible-lint error codes is documented here:
https://docs.ansible.com/ansible-lint/rules/default_rules.html

The failing ansible-lint checks are suppressed by the skip_list
entry in .ansible-lint file.  Those should be fixed in followup
commits by an ansible expert.

The tox target can be invoked locally by: tox -e ansible-lint

The ansible-lint target is automatically included in the linters
tox targer, which is already inoked by zuul.

Story: 2004515
Task: 37144
Change-Id: I9a3e90aebdf6915f3a55b894bda2cd0919b073fd
Signed-off-by: Al Bailey <Al.Bailey@windriver.com>
2019-10-16 08:31:18 -05:00

29 lines
954 B
Plaintext

# exclude_paths:
parseable: true
quiet: true
# rulesdir:
# All errors below should be cleaned up in ansible and removed from the skip_list
skip_list:
- '204' # [E204] Lines should be no longer than 160 chars
- '206' # [E206] Variables should have spaces before and after: {{ var_name }
- '301' # [E301] Commands should not change things if nothing needs doing
- '303' # [E303] systemctl used in place of systemd module
- '305' # [E305] Use shell only when shell functionality is required
- '306' # [E306] Shells that use pipes should set the pipefail option
- '501' # [E501] become_user requires become to work as expected
- '502' # [502] All tasks should be named
- '504' # [E504] Do not use 'local_action', use 'delegate_to: localhost'
- '601' # [E601] Don't compare to literal True/False
- '602' # [E602] Don't compare to empty string
- '701' # [E701] No 'galaxy_info' found
# tags:
use_default_rules: true
verbosity: 1