feat(sshd): add the sshd role #199

Merged
Defame1297 merged 2 commits from feat/sshd-role into main 2026-11-15 22:30:57 +00:00
Owner

Adds the sshd role (wave 1), copied from the environment repository's local role with unchanged behaviour.

What changed against the source

  • meta/main.yml namespace is mortis.
  • Comments, the README and three guard failure messages no longer carry environment references (issue numbers, playbooks, inventory groups, history of old vars/ files and variable renames). The technical explanations stay.
  • The README run order asks for the ansible_user key to be installed first instead of naming the environment's playbooks.
  • The molecule scenario calls the role as mortis.kamino.sshd, follows the Kamino conventions (kamino-molecule header, scenario.test_sequence) and drops provisioner.env.
  • The argument spec's main description now lists all four refusals (two were missing in the source too).
  • Changelog fragment sshd-role.yml; the README Roadmap no longer lists sshd.

No variable, default, argument_specs type, template, handler or task logic changed; the test coverage is the same. The role uses ansible.builtin only, so galaxy.yml dependencies are unchanged. The galaxy.yml version and the README Status line are left for the release commit, as with ufw.

Verified

  • All pre-commit hooks (ansible-lint production profile with FQCN resolution, yamllint, REUSE, changelog lint) and the pre-push ansible-test sanity.
  • A subagent review: diff -r against the source shows only the changes above; the scenario's asserts still match the edited messages; the verify.yml template lookup resolves from the scenario directory; the molecule-ubuntu2404 image ships and enables openssh-server; reuse lint and the tarball checks are clean.

Not verified

  • The molecule scenario (runs here in CI on the kamino-molecule runner).
  • Converge on 22.04 or a live Proxmox VE 9 node; the pve drop-in is only parsed with sshd -T in the scenario.

Ships in the same release as the ufw delete PR.

🤖 Generated with Claude Code

Adds the `sshd` role (wave 1), copied from the environment repository's local role with unchanged behaviour. ## What changed against the source - `meta/main.yml` namespace is `mortis`. - Comments, the README and three guard failure messages no longer carry environment references (issue numbers, playbooks, inventory groups, history of old `vars/` files and variable renames). The technical explanations stay. - The README run order asks for the `ansible_user` key to be installed first instead of naming the environment's playbooks. - The molecule scenario calls the role as `mortis.kamino.sshd`, follows the Kamino conventions (`kamino-molecule` header, `scenario.test_sequence`) and drops `provisioner.env`. - The argument spec's main description now lists all four refusals (two were missing in the source too). - Changelog fragment `sshd-role.yml`; the README Roadmap no longer lists `sshd`. No variable, default, argument_specs type, template, handler or task logic changed; the test coverage is the same. The role uses `ansible.builtin` only, so `galaxy.yml` dependencies are unchanged. The `galaxy.yml` version and the README Status line are left for the release commit, as with `ufw`. ## Verified - All pre-commit hooks (ansible-lint production profile with FQCN resolution, yamllint, REUSE, changelog lint) and the pre-push `ansible-test sanity`. - A subagent review: `diff -r` against the source shows only the changes above; the scenario's asserts still match the edited messages; the `verify.yml` template lookup resolves from the scenario directory; the `molecule-ubuntu2404` image ships and enables openssh-server; `reuse lint` and the tarball checks are clean. ## Not verified - The molecule scenario (runs here in CI on the `kamino-molecule` runner). - Converge on 22.04 or a live Proxmox VE 9 node; the `pve` drop-in is only parsed with `sshd -T` in the scenario. Ships in the same release as the ufw `delete` PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 2 commits 2026-11-15 22:27:40 +00:00
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
docs(sshd): apply review notes to the argument spec and README
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 35s
9d7625f529
The main entry's description now lists all four refusals (the pve
rsa-sha2-512 guard and the ssh-rsa guard were missing, already in the
source). The README no longer names user_management as if it were a role
of this Collection, and says the scenario runs in the Collection's CI
rather than only on pull requests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit 8ab8b72ac1 into main 2026-11-15 22:30:57 +00:00
Defame1297 deleted branch feat/sshd-role 2026-11-15 22:30:57 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#199