A full run executes 15 scenarios one after another, about 1100 s in total, with the slowest (traefik/default) at about 216 s. The scenarios share nothing on the runner's Docker daemon but the daemon itself: their container names are unique. So scripts/run_molecule_scenarios.sh now runs MOLECULE_LANES (default 4, a positive integer) of them at once inside the one job, with the slowest scenario as the floor; the saving will be measured in CI. Each scenario gets its own ANSIBLE_HOME under the job tree. With Runtime(isolated=False), ansible-compat uses ANSIBLE_HOME as molecule's cache dir: molecule's prerun installs the collection under test there with `ansible-galaxy collection install --force` (which first deletes the installed copy), and the scenario's ephemeral directory (inventory, ansible.cfg, state) lives under it. A shared one would let a scenario delete the copy another is running. Each scenario's output goes to its own log, printed afterwards in the selection order inside its own group with its wall time, plus a timing summary. The failure list, the ran-N-of-M guard, </dev/null stdin, the role-directory cwd and the per-scenario container removal are kept. A TERM, INT or HUP to the script stops each lane's whole process tree, including the process groups of ansible's detached workers (they call setsid), terminates it, ignores further signals until done, and exits 128 plus the first signal. A kill of the step's process group reaches the lanes and molecule but not ansible's detached workers. Either way a cancelled job leaves no molecule behind to recreate a container after the next run's cleanup. The logic moved from the workflow into a script so a unit test with stub molecule and docker can hold it; the test also fails a scenario whose platform name is not unique or not matched by the stale-container filter, which is what makes running side by side safe. Assisted-by: Claude Code:claude-opus-5-5
mortis.kamino
An Ansible Collection of reusable, hardened roles for a self-hosted home lab: Linux baseline, firewall, SSH, user management and, in later releases, Proxmox, Gitea and Gitea Actions runner roles.
Status: roles arrive in waves. Release 1.10.0 holds the docker, fail2ban, gitea, gitea_runner, network_interfaces, sshd, system_baseline, systemd_hardening, traefik, ufw and user_management roles (and the internal _binary_update, which gitea, gitea_runner and traefik call).
Consuming
The Collection is consumed by git tag and used by fully qualified collection
name (FQCN) only, mortis.kamino.<role>:
# requirements.yml
collections:
- name: https://git.rkdr.net/mortis/kamino.git
type: git
version: v1.10.0
Its dependencies (community.general, ansible.posix) are declared in galaxy.yml, so
ansible-galaxy installs them unless the same file already pins a satisfying version.
- ansible.builtin.include_role:
name: mortis.kamino.<role>
Pin a tag, never a branch. Releases are annotated vX.Y.Z tags pushed by the
maintainer; the tag equals v plus the version in galaxy.yml. Every role
input carries the role name as a prefix (<role>_<name>).
Roadmap
Roles are extracted from the author's private environment repository in waves (tracked in that repository's epic #486 and its ADR 0001). The order inside a wave is not a promise, and a role arrives only when its own gates (tests, a safe cutover of the environment that uses it) are met.
Still to come:
- Wave 2:
pve_vm,pve_lxc,tailscale,cloudflared,pihole. - Wave 3:
rke2,proxmox_host. - Later, wave not yet assigned:
opnsense,proxmox_firewall.
Will not be extracted (they serve one lab or install that lab's own tool pins):
k8s_manage, k8s_localhost, k8s_lint_tools, minecraft_server, dragonwilds_server,
satisfactory_server.
Licence
Licensed GPL-3.0-or-later (see COPYING). Files marked GPL-3.0-only
(roles/pihole, roles/ufw/templates/before.rules.j2) make the Collection as a
whole distributable under GPL-3.0 only. Third-party material
keeps its own licence, marked by an SPDX header, with texts in LICENSES/ and
attribution in NOTICE. The repository follows the REUSE specification
(reuse lint).
Development
See CONTRIBUTING.md. Releases follow semantic versioning: annotated vX.Y.Z
tags that only the maintainer can push, a changelog built from antsibull-changelog
fragments, and consumption by pinned git tag and FQCN.