kolla-ansible/.ansible-lint
Michal Nasiadka 71df8e6208 CI: treat ansible-lint warnings as errors
Taken from [1].

[1]: https://ansible.readthedocs.io/projects/lint/configuring/#ansible-lint-configuration

Change-Id: I29c1abb4d518a4da6788e06804f28c5f6853c581
2023-12-19 11:05:49 +00:00

28 lines
892 B
Plaintext

---
strict: true
use_default_rules: true
skip_list:
# [E301] Commands should not change things if nothing needs doing
# TODO(mnasiadka): Fix tasks that fail this check in a later iteration
- no-changed-when
# [E503] Tasks that run when changed should likely be handlers
- no-handler
# [unnamed-task] All tasks should be named
# FIXME(mgoddard): Add names to all tasks
- unnamed-task
# disable experimental rules
- experimental
# Package installs should not use latest
- package-latest
# Most files should not contain tabs
- no-tabs
# NOTE(frickler): Agreed at Zed PTG not to use FQCN for builtin actions for now, due to
# conflicts with open patches and backports.
- fqcn-builtins
# Allow Jinja templating inside task and play names
- name[template]
# FQCNs again, now for module actions
- fqcn[action]
# role name check matching ^*$
- role-name