openstack-zuul-jobs/.ansible-lint
Clark Boylan 60acea0da6 Run latest ansible-lint on Ubuntu Noble
We bump the Ansible version to the version that Zuul runs. We then set
ansible-lint to the current latest version. This results in a number of
new linter violations which we fix. These violations include:

 * Needing to name plays
 * Needing to start names with a capital letter
 * Using fully qualified names for action modules
 * Quoting permissions strings to avoid octal conversion errors
 * Using explicit yaml structures for tasks

We also tell ansible-lint to mock zuul_return so that we don't get
errors from it complaining that this module is not defined.

Change-Id: Ic881313fea58f4482f70e493f3d256541d31860a
2024-10-07 12:36:32 -07:00

27 lines
553 B
Plaintext

exclude_paths:
- playbooks/legacy
- zuul.d
parseable: true
# [204] Lines < 160
# [301] Commands should not change things if nothing needs doing
# [306] shells with pipe should use pipe
# [108] role names have "-"
# [208] file permissions not mentioned
skip_list:
- '204'
- '301'
- '306'
- '106'
- '208'
- fqcn-builtins # needs a lot of work
- yaml[line-length] # we use good taste with long lines
- yaml[truthy] # "yes" is ok
use_default_rules: true
verbosity: 1
mock_modules:
- zuul_return
# Local variables:
# mode: yaml
# End: