refactor(roles): drop duplicated and dead code #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/dedup-roles"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Fifteen roles opened with a debug task that printed their flag only under
-v, twenty-threehandlers/main.ymlandvars/main.ymlfiles held nothing but a header, and several roles repeated a block, a condition or an expression they already had.What changed
tasks/. CONTRIBUTING asks for only the directories a role uses. Visible to operators:-vno longer prints those per-role lines, some of which also showed settings such as firewall-apply's file and forward-drop state.flush_handlersguards and a comment repeated above everywin_powershellscript go.-v, tag examples on a role that still runs tasks, and theSupportsShouldProcessrule stated once for both Windows roles.Net −247 lines.
Verification
mainafter #24 and #26;make checkpasses on the rebased branch.firewall_renderfixtures and every shipped port file render byte-identical tomain, andevidence.ymlagainst a stubnft(healthy, wrong policy, no table; live and--check) ends as it does onmain.main's; a probe confirmed thatmeta: flush_handlersinherits its block'swhenon ansible-core 2.21; the loader includes the tasks-less webserver role without error.make test(no podman in the agent sandbox).Risks and follow-ups
when, an install task moved into its own block). None changes what a host receives; runmake test, then--check --diffbefore the next live run.0f5ab63dd1to146a2f62ae146a2f62aeto216d416959