Review findings on the delete support: - The both-added-and-deleted check compared the written fields, so direction: in or from: any on the added rule hid a conflict that ufw sees (it stores no direction as in and no address as any); the delete then removed the SSH rule the lock-out guard had counted. Fields are now normalised as ufw stores them (incoming/outgoing as in/out too). A missing proto stays distinct from tcp, as in ufw. - A delete sent with a comment that differs from the stored one matches nothing in ufw and exits 0, so the rule stayed silently. Deletes are now sent without their comment; ufw then matches the rule whatever its comment. The scenario's delete entry carries a different comment to cover it, and the conflict refusal uses the explicit defaults. - README: a delete without an address removes the IPv4 and IPv6 rules, an IPv4 from allows IPv4 only. - verify searches 9091/tcp, not a bare 9091 that an owner tag could hold. Verified locally in check mode against localhost: both bypass lists and an incoming/outgoing spelling are refused; the planned replacement list and a no-proto add with a tcp delete pass. 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.5.0 holds the docker, fail2ban, network_interfaces, system_baseline, systemd_hardening and ufw roles.
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.5.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 1 (remaining):
sshd,user_management. - Wave 2:
binary_update(shared binary-update logic),pve_vm,pve_lxc,traefik,gitea,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.