kolla-ansible/.ansible-lint
Pierre Riteau e890f161ed CI: allow Jinja templating anywhere inside task and play names
With the release of ansible-lint 6.7.0, the openstack-tox-linters job
started failing with these errors:

    WARNING  Listing 30 violation(s) that are fatal
    ansible/roles/ceilometer/tasks/config.yml:66: name: Jinja templates should only be at the end of 'name' (name[template])
    [...]

Add this new check to skip_list for now.

Change-Id: Ia82a88ee3b9bb6a3cb09f09c6568d1914ee2592d
2022-09-26 10:16:53 +02:00

33 lines
1.1 KiB
Plaintext

---
use_default_rules: true
skip_list:
# [E701] galaxy_info missing in metadata
- '701'
# [E602] https://github.com/ansible/ansible-lint/issues/457
- '602'
# [E301] Commands should not change things if nothing needs doing
# TODO(mnasiadka): Fix tasks that fail this check in a later iteration
- '301'
# [E503] Tasks that run when changed should likely be handlers
# TODO(mnasiadka): Rework baremetal role to do handlers instead of when: *.changed
- '503'
# [E106] Role name {} does not match ``^[a-z][a-z0-9_]+$`` pattern
- '106'
# [E208] permissions not mentioned
# FIXME(mnasiadka): Rework file/template to include permissions
- '208'
# [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]