The gitea role accepts a release only when it carries a valid signature by gitea_gpg_key_id or one of its subkeys, so an expired, revoked or replaced Gitea release key makes every install and update fail closed, without warning, on the day it happens. scripts/check_gitea_release_key.py reads the pins from the role defaults, fetches the release key into a throwaway keyring and only the .asc of the pinned release (never the binary), and fails when the primary key or a signing subkey expires within 60 days, is revoked or expired, or when a signature in the .asc is not by a valid signing key of the pinned key. Its docstring says what to do on a failure. The Gitea release key workflow runs it weekly, by hand, and on pull requests that change the role defaults or the check, so a gitea_version bump is checked against the new release's signature. It runs in the ci image at the pin of lint.yml; that image has gpgv but not gpg, so the job installs gpg and gpg-agent from the Ubuntu archive per run instead of making the check an image input. The tests that make keys skip without gpg, so the Lint job's unittest run (no gpg) still covers the parsing and rendering tests. The workflow pins the ci image, so it joins the pin consumers of check_image_versions.py and check_bot_pr_diff.py: Renovate's pin follow-up edits every workflow, and the bot-diff gate would otherwise refuse that pull request. The new workflow and script are on the molecule selector's IGNORED list, since no scenario reads them. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
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.9.0 holds the docker, fail2ban, gitea, network_interfaces, sshd, system_baseline, systemd_hardening, traefik, ufw and user_management roles (and the internal _binary_update, which gitea 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.9.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,gitea_runner,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.