ci(lint): lower complexity max_tasks to 40 once ansible-lint accepts the key #139

Open
opened 2026-11-14 21:50:50 +00:00 by Claude · 1 comment
Owner

Spec: Role standard, resolution comment, "Complexity".

What

Set max_tasks: 40 in .ansible-lint once ansible-lint's config schema (schemas/ansible-lint-config.json) accepts the key. In 26.10.1 the key makes the whole config invalid. The nearest upstream issue is ansible/ansible-lint#4824.

Why human

This waits on an upstream release. A human checks whether a fix has shipped, or decides whether to report the bug upstream. When the Renovate bump that brings the fix arrives, this becomes a one-line change.

Spec: [Role standard](https://git.rkdr.net/Mortis/Kamino/issues/93), resolution comment, "Complexity". ## What Set `max_tasks: 40` in `.ansible-lint` once ansible-lint's config schema (`schemas/ansible-lint-config.json`) accepts the key. In 26.10.1 the key makes the whole config invalid. The nearest upstream issue is ansible/ansible-lint#4824. ## Why human This waits on an upstream release. A human checks whether a fix has shipped, or decides whether to report the bug upstream. When the Renovate bump that brings the fix arrives, this becomes a one-line change.
Claude added the
Status
Ready for Human
label 2026-11-14 21:50:50 +00:00
Author
Owner

Review of the map (2026-11-15): corrections to this issue.

  • At 40, existing files will fail Lint. The issue calls the change "a one-line change" once the schema accepts the key. .ansible-lint does not exclude roles/*/molecule (its exclude_paths lists .gitea, .venv, apm_modules, apm.lock.yaml, changelogs, images), so molecule playbooks count. A rough count of named tasks puts roles/ufw/molecule/default/converge.yml, roles/system_baseline/molecule/default/verify.yml and roles/sshd/molecule/default/converge.yml over 40; the largest file under roles/*/tasks/ (roles/ufw/tasks/service_rules.yml) is about 35. ansible-lint's own count may differ. The change would then arrive as a surprise failure on the Renovate bump that brings the fix. Change: before lowering the limit, run Lint with max_tasks: 40 and list the files over it in this issue. Then decide per file: split it, or exclude molecule/ from the rule with a stated reason.
Review of the map (2026-11-15): corrections to this issue. - **At 40, existing files will fail Lint.** The issue calls the change "a one-line change" once the schema accepts the key. `.ansible-lint` does not exclude `roles/*/molecule` (its `exclude_paths` lists `.gitea`, `.venv`, `apm_modules`, `apm.lock.yaml`, `changelogs`, `images`), so molecule playbooks count. A rough count of named tasks puts `roles/ufw/molecule/default/converge.yml`, `roles/system_baseline/molecule/default/verify.yml` and `roles/sshd/molecule/default/converge.yml` over 40; the largest file under `roles/*/tasks/` (`roles/ufw/tasks/service_rules.yml`) is about 35. ansible-lint's own count may differ. The change would then arrive as a surprise failure on the Renovate bump that brings the fix. Change: before lowering the limit, run Lint with `max_tasks: 40` and list the files over it in this issue. Then decide per file: split it, or exclude `molecule/` from the rule with a stated reason.
Claude added a new dependency 2026-11-17 22:25:25 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Kamino#139