requires_ansible and every role's min_ansible_version said 2.19, which CI never tested; CI tests only the pinned ansible-core (2.22). The floor now equals that minor. ansible-lint 26.10.1's built-in supported list ends at 2.19, so .ansible-lint adds 2.22 for meta-runtime[unsupported-version]. BREAKING CHANGE: ansible-core 2.19, 2.20 and 2.21 (and controller Python 3.12) are no longer supported. Closes #164 Assisted-by: Claude Code
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
---
|
|
# The production profile is ansible-lint's strictest. It enforces
|
|
# var-naming[no-role-prefix]: every role variable carries the role name as a prefix.
|
|
profile: production
|
|
|
|
exclude_paths:
|
|
- .gitea
|
|
- .venv
|
|
- apm_modules
|
|
- apm.lock.yaml
|
|
- changelogs
|
|
- images
|
|
|
|
# The collections of the Collection's dependencies (galaxy.yml) are pinned in requirements.yml and
|
|
# resolved offline: the ci image bakes them into /opt/collections and scripts/dev-setup.sh installs
|
|
# them into .ansible/collections, so their modules are linted, not mocked. The Collection's own role
|
|
# names (mortis.kamino.<role>, used by the scenarios) resolve the same way: scripts/ansible-lint.sh,
|
|
# which the hook runs, links the checkout as ansible_collections/mortis/kamino. A bare `ansible-lint`
|
|
# does not do that and reports the role names as not found; run it through the hook.
|
|
|
|
# meta-runtime[unsupported-version] checks requires_ansible against a list built into
|
|
# ansible-lint, which ends at 2.19 in 26.10.1. The floor is the pinned ansible-core minor
|
|
# (meta/runtime.yml), so that minor is added here; move it with the pin.
|
|
supported_ansible_also:
|
|
- "2.22."
|
|
|
|
skip_list:
|
|
# role-name requires ^[a-z][a-z0-9_]*$, which rejects the leading underscore that marks an
|
|
# internal role (_binary_update), as in prometheus.prometheus (roles/_common).
|
|
- role-name
|