Copied from the maintainer's local role and reworked for the Collection:
the binary swap and rollback of an update go through the internal
_binary_update role, input checks move to tasks/validate.yml, the
removal ends the role, commands take argv, and the molecule tooling
needs an explicit collections requirements file. Adds a molecule
scenario with stub Docker, runner and release files.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Moves the gitea role from the environment repository, the second wave 2 role and the
second caller of the internal _binary_update role.
Against the source:
- The update path stages the downloaded, signature-verified binary in a directory next to
the live one and hands the stop, backup, swap, restart, version check and rollback to
mortis.kamino._binary_update (include_role with apply tags, so --tags update reaches
it). A download or signature failure still leaves the running service untouched and
says so; a failure in the swap keeps the rollback message of _binary_update. Its default
version regex is the one the source used.
- The same two small behaviour changes as for traefik come with _binary_update: the backup
is taken whenever a live binary exists, and a failure before the stop no longer
restarts the running service.
- The update no longer removes a PID file between the stop and the start, and
gitea_pid_file is gone: the unit runs `gitea web` without --pid and has no PIDFile=,
so Gitea writes no PID file and systemd reads none.
- The database-migration warning of the source's rollback message (the previous binary
may refuse a migrated schema) moves to the gitea_update docs in the README and the
argument_specs, since _binary_update owns the failure message.
- The legacy name guard (pre-rename variables of the environment) is dropped, as in the
wave 1 roles, and the argument_specs and README no longer mention it. The jwt secret,
mailer and e-mail confirmation asserts stay.
- Environment references are gone from comments, app.ini.j2, the README and the
argument_specs: issue numbers, decision records, host names, inventory paths,
playbooks, the network and proxy layout and other roles' copies of the paths. The
Renovate comment on gitea_version is dropped; the README and argument_specs recommend
pinning the version in inventory. The mint messages no longer name a playbook.
- On a fresh host the token assert and the SSH-key upload ran before the unit was
written and Gitea started, so a first install could never complete. Both now run after
the service check, and the upload first waits (up to 60 s, not under --check) for the
local listener; the listener address is resolved once for both.
- REVERSE_PROXY_LIMIT, hard-coded to 2, is now gitea_reverse_proxy_limit with default 1:
a limit above the real number of proxies lets a client forge the address Gitea logs and
Fail2Ban bans. A setup with two proxies sets it to 2.
- The gitea commands with user-supplied values (migrate, admin user list and create, and
the token mint) take argv instead of a command string; still run through sudo -u.
- gitea_version is asserted at role start to be a plain X.Y.Z, with no leading v.
- meta namespace mortis; the scenario follows the Kamino conventions (header,
test_sequence, no provisioner env) and calls the role by FQCN, also in the child
ansible-playbook of the mint CI-guard cases. Coverage is unchanged.
No other default changed; DISABLE_REGISTRATION stays hard-coded to true.
Changelog fragment, README Roadmap and the CLAUDE.md role list updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the traefik role, the first role of wave 2, and the internal _binary_update role
it uses to swap in a new release with rollback (not part of the public API). The
trivial README and comment fixes of the wave 1 scrub ship here too. Existing roles are
unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Moves the traefik role from the environment repository, the first wave 2 role and the
first caller of the internal _binary_update role.
Against the source:
- The update path stages the downloaded, checksum-verified binary in a directory next to
the live one and hands the stop, backup, swap, restart, version check and rollback to
mortis.kamino._binary_update (include_role with apply tags, so --tags update reaches
it). A download or checksum failure still leaves the running service untouched and
says so; a failure in the swap keeps the rollback message of _binary_update.
- Two small behaviour changes come with _binary_update: the backup is taken whenever a
live binary exists (the source skipped it when the binary reported no version), and a
failure before the stop no longer restarts the running service.
- The legacy name guards (pre-rename variables of the environment) are dropped, as in
the wave 1 roles, and the argument_specs and README no longer mention them.
- Environment references are gone from comments, the README and the argument_specs:
issue numbers, host names, inventory paths, playbooks and the role's own history. The
Renovate comment on traefik_version is dropped, since this repository has no manager
for it; the README and argument_specs recommend pinning the version in inventory.
- meta namespace mortis; the scenario follows the Kamino conventions (header,
test_sequence, no provisioner env) and calls the role by FQCN.
- The scenario's verify gains a real version bump: down to another release (v3.7.18)
and back to the role default with traefik_update, asserting the version, an active
unit and no staging directory, backup or download left behind.
Changelog fragment, README Roadmap and the CLAUDE.md role list updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Swaps a staged, verified binary into place for a systemd service: refuse when nothing
executable is staged, then reload, stop and wait, back up the live binary, rename the
staged file over it, start and wait for active, and compare the reported version. A
failure after the stop restores this run's backup, starts the service again and fails
with a message that says whether the restore and the restart worked. Under --check the
waits and the version check are skipped, so a preview against a stopped service does
not fall into the rollback. The staged file is removed in every case.
The role is internal (ADR 0004 in the environment repository): called only by roles of
this Collection by FQCN, outside the public API, marked by the underscore, [INTERNAL]
in its meta and argument_specs, and a first task that refuses a call without a parent
role. traefik is its first caller and arrives in the same release.
Two molecule scenarios use stub binaries under a stub unit, without network: default
(successful bump and idempotence, a binary that cannot start, a binary that reports the
wrong version, nothing staged, a direct call, a first install) and check_mode (the bump
under molecule check against a stopped service changes nothing).
Lint: role-name is skipped (its regex rejects the leading underscore, as for
prometheus.prometheus roles/_common), meta has no role_name (schema[meta] uses the same
regex and cannot be skipped), and .ansible-lint-ignore lists the role's own files for
var-naming[no-role-prefix], which strips the underscore from the variable but not from
the role name and so cannot pass. The ignore file is kept out of the Collection build
and is on the scenario picker's IGNORED list. The README Roadmap no longer lists the role.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
The Roadmap now names the wave 2 helper `_binary_update`: an internal
role called only by Collection roles, outside the semver promise, that
ships with the traefik extraction (ADR 0004 amendment, review in the
environment repository's #365).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the user_management role, which completes wave 1. Its root fallback
refuses to run when the primary user's name is not ansible_user. Existing
roles are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Copied from the environment repository's local role. The files are
identical except: galaxy namespace mortis; comments and the README
scrubbed of environment references (issue numbers, playbooks, inventory
groups and group_vars paths, the provisioning roles by name, the history
of the variable rename), with the technical explanation kept; the README
asks for the role by its FQCN, names the run order generically (after the
step that creates the guest, before mortis.kamino.sshd) and its example
play uses mortis.kamino.user_management; the molecule scenario calls the
role by its FQCN, follows the Kamino scenario conventions (kamino-molecule
header, scenario.test_sequence) and no longer sets ANSIBLE_COLLECTIONS_PATH
or ANSIBLE_ROLES_PATH. No variable, default, argument_specs entry or task
logic changed: the key-only root fallback, the handback and
user_management_lock_root_password (default false) are as in the source,
and prepare/verify are unchanged. The role uses ansible.posix
(authorized_key), already a galaxy.yml dependency, so galaxy.yml is
unchanged.
The README Roadmap no longer lists wave 1; CLAUDE.md names the role for
the next release.
Not verified locally: the molecule scenario (it runs on the
kamino-molecule runner in CI) and ansible-test sanity (runs on push).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the sshd role. ufw base rules can delete a rule (delete: true), so
an open rule can be replaced by narrower ones, and fail2ban gains
fail2ban_ignoreip. Existing behaviour is unchanged unless the new
options are used.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Copied from the environment repository's local role. The files are
identical except: galaxy namespace mortis; comments, the README and the
guard failure messages scrubbed of environment references (issue numbers,
playbooks, inventory groups, the caller role's fallback, history of the
old vars/ files and of the variable renames), with the technical
explanation kept; the README's run order now asks for the ansible_user key
to be installed first instead of naming the environment's playbooks; the
molecule scenario calls the role by its FQCN (mortis.kamino.sshd), follows
the Kamino scenario conventions (kamino-molecule header,
scenario.test_sequence) and no longer sets ANSIBLE_COLLECTIONS_PATH or
ANSIBLE_ROLES_PATH. No variable, default, argument_specs type or task
logic changed; the test coverage is the same. The role uses
ansible.builtin only, so galaxy.yml's dependencies are unchanged.
The README Roadmap no longer lists sshd.
Not verified locally: the molecule scenario (it runs on the
kamino-molecule runner in CI) and ansible-test sanity (runs on push).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
system_baseline gains an optional tmux session on SSH login, a toggle
to skip the package update in the main flow, and pinned
unattended-upgrades origins for the pve profile. No new roles.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the ufw role (main, service_rules and orphan_rules entry points),
copied from the environment repository's role with unchanged
behaviour. Existing roles are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
- galaxy.yml declares community.general and ansible.posix: system_baseline is
the first role that calls modules outside ansible.builtin, and a consumer
that installs only this Collection failed to parse the play.
- The README override example set Automatic-Reboot to false, which every
profile already defaults to; it now shows the opt-in.
- Comment and description wording.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the network_interfaces and systemd_hardening roles. Version bump in
galaxy.yml, the changelog built by antsibull-changelog release, README pin
example and status text, CLAUDE.md.
Verified: the commit hooks. Not verified: ansible-test sanity and the
importer (CI). The tag is the maintainer's.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Adds the fail2ban role. Version bump in galaxy.yml, the changelog built by
antsibull-changelog release, README pin example and status text, CLAUDE.md.
Verified: the commit hooks. Not verified: ansible-test sanity and the
importer (CI). The tag is the maintainer's.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
First release, holding the docker role. Version bump in galaxy.yml, the
changelog built by antsibull-changelog release, README and CLAUDE.md no
longer say there are no roles, CHANGELOG.rst is allowed in the archive
(scripts/check_tarball.py) and the generated changelog.yaml is exempt from
yamllint like changelogs/config.yaml.
Verified: the commit hooks; the tarball script's unit tests; a local
ansible-galaxy build of 1.0.0 passes scripts/check_tarball.py. Not verified:
ansible-test sanity and the importer (CI). The tag is the maintainer's.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
State the real Gitea approval rule for fork pull requests, require a
REUSE.toml annotation for third-party material, describe the release
changelog files, and list the repository settings the workflows cannot
enforce (protected v* tags, protected main, the package push credential).
Drop the references to the private environment repository.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm