What a role's platform declaration means, and supported entry points #207
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#207
Reference in new issue
Block a user
Part of #87
Question
Role standard decided every role passes on
nobleandresoluteand declares exactly those. The roles disagree with that today:network_interfacestargets Debian (ifreload), andsshd,system_baselineandsystemd_hardeningcarry a profile for Debiantrixie. Several roles declarejammyandtrixiein their metadata. The platforms issue (#133) says to drop Debian.tasks/<name>.ymlentry point. Such an entry point is used today though undocumented, and it skips argument validation.Decide:
From the review
roles/AGENTS.mdissue (#181), the validation and naming issue (#137). Both #164 and #133 predate thesshdrole and need to cover it.Evidence from the review of the map (2026-11-15).
"Tested in CI" or "meant to work on"
all; every role passes on both". test(roles): run every role scenario on 24.04 and 26.04 and declare exactly those platforms: "Dropall,jammyand Debian."${MOLECULE_IMAGE}, the 24.04 image, only; no scenario tests 26.04 or Debian (roles/*/molecule/default/molecule.yml).ansible-lintschema[meta]acceptsnobleandresolute(checked with ansible-lint 26.10.1 on a throwaway role). So the README and Molecule are the real claim, as the role standard says.roles/*/meta/main.yml):allallufwif it has merged") predatesshd, which declares jammy, noble and trixie.Debian code paths
roles/network_interfaces/README.md:7: "Debian-based hosts usingifupdown2(ifreload), such as Proxmox hosts". Its scenario stubs the validate and reload commands and "does not testifreload".sshd,system_baselineandsystemd_hardeningcarry apveprofile for "Debian 13 (trixie) Proxmox hosts".roles/system_baseline/README.md:7androles/systemd_hardening/README.md:7both say Debian 13 is "not verified by a test".Supported entry points
tasks_from: tmux.ymltoday;roles/system_baseline/tasks/tmux.ymlis not a documented entry point.roles/system_baseline/tasks/main.yml:3importsvalidate.ymlfirst, sotasks_from: tmux.ymlskips argument validation.system_baselinedocumentstasks_from: updateandtasks_from: rebootas "a supported interface" under semver (README.md:57-62), andufwdocumentstasks_from: service_rules(roles/ufw/README.md:57). Entry points are therefore already a role feature, with no rule on what each must do.tasks/<name>.ymlsilently.tasks/<name>.ymlis never supported and the consumer's need gets a real entry point. Until decided, a note on the platforms issue keepstasks/tmux.ymlfrom being renamed.Resolution
Decided with the maintainer (grilling session, 2026-11-16). Amends Role standard, "Platforms".
Platform declaration.
galaxy_info.platformsinmeta/main.ymllists only platforms on which the role passes Molecule in CI on a molecule image. A platform that is used but not tested is named only in the README, under "Untested platforms", never inmeta.jammyand Ubuntuallare dropped everywhere.molecule.ymlnext tometa/main.yml.Platforms follow the target hosts. A role declares the releases of the hosts it targets and passes Molecule on each. Ubuntu targets declare exactly
nobleandresolute; Proxmox targets declare Debiantrixie. Each profile is tested on its own OS only.network_interfacestargetsifupdown2, which Ubuntu does not use.Debian is kept and tested. Removing the Debian code paths would change role behaviour, which the map rules out of scope. A
molecule-debian13image is added (under the existing image rules: added by hand, retired when no host runs it). Thepveprofiles ofsshd,system_baselineandsystemd_hardeningand the whole ofnetwork_interfaces(withifreloadstill stubbed) run on it, and those roles declaretrixie.network_interfacesdeclarestrixieonly. A container does not reproduce/etc/pveor a cluster; the test covers the packages and files the role writes. CI cost: about four more converge-and-verify runs per full Molecule run, not measured.Supported entry points. A role may have more than one. Each:
meta/argument_specs.ymland runs its validation (spec plus whatevervalidate.ymlchecks that a spec cannot) before any change;Every
tasks/*.ymlwithout a spec key is internal and may be renamed in any release. Held by a control: the spec-defaults drift check also compares spec keys, README "Entry points" andtasks/<key>.yml(an extension of the accepted custom checker, not a new one).The tmux and Debian 12 request (system_baseline: tmux entry point and Debian support) is not decided on the map: adding an entry point or a platform changes a role. It is triaged as an ordinary issue against these rules. Until then
tasks/tmux.ymlkeeps its name, because a consumer calls it.ADR: no; this is easily reversed.
Backlog: filed as two new issues (Debian 13 molecule image; supported entry points), plus corrections on #133, #135, #137, #164, #181 and #186.