ci: shared molecule config: no prerun reinstall, smart fact gathering #421
Notifications
Due Date
No due date set.
Blocks
Reference: Mortis/Kamino#421
Reference in new issue
Block a user
Part of #419
Problem
Every scenario runs molecule's prerun, which reinstalls the collection and its dependencies per scenario (
scripts/run_molecule_scenarios.shline 4: "molecule reinstalls the collection there with --force"), although scenarios loadmortis.kaminofrom the checkout (.gitea/workflows/AGENTS.md, the rule that putsgalaxy.ymlon IGNORED). Each play also gathers facts again with the defaultimplicitgathering.Out of scope: pipelining (separate issue, so a become failure is attributable).
Proposal
.config/molecule/config.yml, read by every scenario, withprerun: falseandANSIBLE_GATHERING: smart(through the provisioner's env or config options)..config/tobuild_ignoreingalaxy.ymlso it does not ship in the Collection tarball.scripts/run_molecule_scenarios.shand the rule in.gitea/workflows/AGENTS.md.Acceptance criteria
ansible-galaxy collection buildoutput does not contain.config/(tar tzfof the built tarball; the Build check).python3 -m unittest discover -s tests/scriptspasses.Assisted-by: Claude Code