Author SHA1 Message Date
Defame1297 91cc633665 docs(molecule): say the profile callbacks come from the molecule-controller image
Lint / lint (pull_request) Successful in 5m7s
Molecule / molecule (pull_request) In progress
Build / build (pull_request) Successful in 1m11s
Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 4db1a2b3c9 docs: describe Molecule running in the molecule-controller image
The ci image's labels and doc, the consumer lists, the Molecule rules in
.gitea/workflows/AGENTS.md and the accepted risk on pin bumps in SECURITY.md said Molecule
runs in the ci image. They now name the molecule-controller image, its pin files and which
pin files select scenarios.

Closes #431

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 89bd579e87 ci(molecule): run Molecule in the molecule-controller image
Molecule ran in the ci image, so a ci pin bump for a tool only Lint uses selected every
scenario (ADR 0003). The workflow now pins molecule-controller 0.1.0 by digest as
CONTROLLER_IMAGE, the hand-made first pin the ADR calls for.

- The run script checks /opt/molecule-pins.sha256 and installs requirements-molecule.lock
  when a pull request changed a pin file.
- The selector reads CONTROLLER_IMAGE: a controller pin change selects every scenario; a ci
  pin bump touches only lint.yml and build.yml, which are on IGNORED, so it selects none.
- Tests show requirements-molecule.* selects every scenario and requirements-dev.* none.
- Renovate's molecule.yml regex matches CONTROLLER_IMAGE.

Closes #434

Assisted-by: Claude Code
2026-11-29 19:25:33 +00:00
Defame1297 6e89e4d857 Merge pull request 'ci(images): stop baking ufw and fail2ban into the molecule images' (#485) from images/435-stop-baking-ufw-fail2ban into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 48s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 59s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 22s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 19s
Reviewed-on: #485
2026-11-29 19:11:40 +00:00
Defame1297 f1598486f0 test(molecule): stop saying the image ships ufw and fail2ban
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 14m55s
Build / build (pull_request) Successful in 34s
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 c64b4b932b ci(images): stop baking ufw and fail2ban into the molecule images
ADR 0002 keeps a package a role installs out of the molecule images, so its scenario exercises
the install. The ufw and fail2ban roles install their packages, so both images drop them; iptables,
openssh-server, python3-systemd and gnupg stay as fixtures. The labels, header comments, image
docs and image-smoke package lists no longer claim the packages are baked or that a converge
makes no network calls.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 6e9709f0da test(molecule): refresh the APT cache where a scenario installs ufw or fail2ban
The molecule images keep no APT lists, and the ufw and fail2ban scenarios, and the gitea
scenario's remove path, relied on those packages being baked in. Their prepare now refreshes the
cache, so they keep working once the images stop shipping the packages.

Refs: #435
Assisted-by: Claude Code
2026-11-29 18:53:24 +00:00
Defame1297 ac9a11413d Merge pull request 'ci(images): build and publish the molecule-controller image' (#484) from ci/477-molecule-controller-image into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 18s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 21s
Images / image (0.1, images/molecule-controller/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-controller, ) (push) Successful in 1m36s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 16s
Reviewed-on: #484
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:52:27 +00:00
Defame1297 1289da3104 Merge branch 'main' into ci/477-molecule-controller-image
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 32m9s
2026-11-29 18:19:41 +00:00
Defame1297 7f28fccfe4 Merge pull request 'fix(ufw, fail2ban): pass --check on a host without the package' (#481) from fix/478-ufw-fail2ban-check-mode into main
Reviewed-on: #481
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 18:08:26 +00:00
Defame1297 c402720376 Merge branch 'main' into fix/478-ufw-fail2ban-check-mode
Lint / lint (pull_request) Successful in 3m45s
Molecule / molecule (pull_request) Successful in 13m26s
Build / build (pull_request) Successful in 40s
2026-11-29 17:54:14 +00:00
Defame1297 468d167d3a Merge pull request 'docs(adr): say how a later ADR that changes part of an earlier one is recorded' (#480) from docs/453-adr-partial-change into main
Reviewed-on: #480
Reviewed-by: Defame1297 <[email protected]>
2026-11-29 17:53:47 +00:00
Defame1297 a1d42eadce Merge branch 'main' into docs/453-adr-partial-change
Molecule / molecule (pull_request) Successful in 16s
Lint / lint (pull_request) Successful in 1m50s
Build / build (pull_request) Successful in 58s
2026-11-29 17:50:49 +00:00
Defame1297 14c7dde464 Merge pull request 'ci(molecule): fail the run when a scenario has molecule's prerun on' (#479) from ci/452-prerun-check into main
Reviewed-on: #479
2026-11-29 17:49:40 +00:00
Defame1297 56c5c6dd72 ci(images): fail the controller self-check on an empty locked version
Build / build (pull_request) Successful in 33s
Lint / lint (pull_request) Successful in 3m25s
Molecule / molecule (pull_request) Canceled after 7m3s
The self-check reads the ansible-core and molecule versions from the
lock with sed; an empty result made the grep match any version. It now
fails the build instead.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:17 +00:00
Defame1297 c3a7cef195 fix(scripts): give a repository not pushed yet no tags
The registry answers tags/list for a repository that does not exist yet
with 404 NAME_UNKNOWN (OCI distribution spec), which failed the Images
version step for the first build of a new image such as
molecule-controller. A 404 on the first tags/list page now reads as no
tags, so the image gets <base>.0; a 404 on a manifest stays an error.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:34:01 +00:00
Defame1297 a9a973a523 fix(ufw, fail2ban): keep the check-mode guard out of vars and test service_rules
Lint / lint (pull_request) Successful in 4m29s
Molecule / molecule (pull_request) Canceled after 1m14s
Build / build (pull_request) Successful in 38s
vars/ holds constants only, so ufw's __ufw_can_configure is now a
set_fact after the install probe; the guards default it to true when the
install tasks were skipped by tags.

service_rules already skips its reconcile when `ufw status` fails under
check mode; the ufw check-absent scenario now calls it so CI holds that.
The fail2ban service jail task's tags sit with the task again, above the
comment of the configuration test.

Refs #478

Assisted-by: Claude Code
2026-11-29 17:10:25 +00:00
Defame1297 0fb4fd70ee ci(renovate): bump the molecule-controller pins like the ci ones
Renovate's pip-compile manager now reads requirements-molecule.lock, and
its uv manager reads the controller Dockerfile's uv pin. The bot-PR
guard holds the controller requirements and lock to the same rules as
requirements-dev.txt and its lock, so the bot's pull requests for them
are neither refused nor freer than the ci ones. The ansible tooling
group spans both locks, so one pull request moves both ansible-core
pins, which check_image_versions.py holds equal.

Checked with renovate 44.161.0 --platform=local: it extracts
requirements-molecule.txt with requirements-molecule.lock, and the uv
pin of images/molecule-controller/Dockerfile.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:09:29 +00:00
Defame1297 fd448d7e9e ci(images): add the molecule-controller image
ADR 0003 moves Molecule out of the ci image, so a ci bump for a tool
only Lint uses stops selecting every scenario. This builds and publishes
the image; nothing pins it yet (#431).

It bakes requirements-molecule.lock (ansible-core, molecule,
molecule-plugins[docker]) on the Python of .python-version and the
collections of both requirements.yml files, and records their checksums
in /opt/molecule-pins.sha256. Its last RUN checks the tool versions
against the lock, the Docker driver, every pinned collection and the
pin record, so a broken image fails its build. It has no image-smoke
scenario: it is the controller of every scenario, and the full run of
its pin pull request proves it; images/AGENTS.md records the exception.

check_image_versions.py pins now checks the Python header of both locks
and fails when their ansible-core pins differ, so Lint and Molecule
judge the code with one ansible-core. The new requirements files stay
off the selector's IGNORED list, so a bump there runs every scenario.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:35 +00:00
Defame1297 26c6026d1a ci(scripts): lock either root requirements file
The molecule-controller image gets a requirements file and lock of its
own (ADR 0003), so the lock script takes the file to lock:
requirements-dev.txt by default, as before, or requirements-molecule.txt.
Any other argument is a usage error, so a typo cannot write a lock
somewhere else.

The new test runs the script against a stub interpreter, so it needs
no network.

Refs #477

Assisted-by: Claude Code
2026-11-29 17:03:05 +00:00
Defame1297 2d338d4764 docs(adr): say where the pointer to a later ADR goes
Build / build (pull_request) Successful in 1m6s
Lint / lint (pull_request) Successful in 4m37s
Molecule / molecule (pull_request) Successful in 17s
Assisted-by: Claude Code
2026-11-29 17:00:45 +00:00
Defame1297 f31279f9f3 docs(adr): say how a later ADR that changes part of an earlier one is recorded
Neither `accepted` nor `superseded by NNNN` fits a partial change, so the
earlier ADR stays accepted with one sentence sending its reader on to the
later ADR. ADR 0002's sentence now names the part ADR 0003 changes.

Refs: #453
Assisted-by: Claude Code
2026-11-29 16:59:44 +00:00
Defame1297 49afd900dc ci(molecule): fail the run when a scenario has molecule's prerun on
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 5m15s
Molecule / molecule (pull_request) Successful in 36m0s
check_scenarios_load_checkout.py now merges the base config the way
molecule's CLI does (its own lookup of .config/molecule/config.yml) and
fails a scenario whose merged prerun is not false, naming the base
config. Before, it built Config with no base config, so a scenario that
turned prerun back on, or a moved base config, slowed every run and
nothing failed.

Closes #452

Assisted-by: Claude Code
2026-11-29 16:56:29 +00:00
Defame1297 924a0ea7a7 fix(ufw, fail2ban): pass --check on a host without the package
Under --check the package task only reports a change, so on a fresh host
the tasks after it ran against a missing binary, /etc directory or unit
and failed. They now skip when the install would change in check mode.

fail2ban registers __fail2ban_install and guards its template, service,
config test, jail tasks and handler with the standard
`not ansible_check_mode or ... is not changed` guard. ufw registers
__ufw_install plus a command probe (ansible_check_mode is not set for a
play-level check_mode inside include_role), combined once in vars/main.yml
as __ufw_can_configure. flush_handlers is left unguarded: the handler it
runs is guarded itself.

A check-absent scenario per role purges the package, refreshes the APT
cache and runs only `check`, so each fix is tested; one scenario covering
both would make the ufw role a user of fail2ban and select the ufw and
traefik scenarios on every fail2ban change.

Fixes #478

Assisted-by: Claude Code
2026-11-29 16:39:45 +00:00
Defame1297 0173f6f226 Merge pull request 'chore(apm): update Holocron plugins to 219a084' (#476) from chore/apm-update into main
Reviewed-on: #476
2026-11-29 13:30:41 +00:00
Defame1297 dfc25640b6 chore(apm): update Holocron plugins to 219a084
Molecule / molecule (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m50s
Build / build (pull_request) Successful in 39s
Refresh git, mattpocock and plan to the current Holocron head. The plan
plugin moves from 0.1.0 to 0.4.0 and now deploys the plan-* agents, the
plan and ship commands, and the plan-track and research-docs skills.

Assisted-by: Claude Code
2026-11-29 13:17:45 +00:00
Defame1297 11b75d9014 Merge pull request 'ci(molecule): stop a scenario that runs past its own time limit' (#475) from ci/474-scenario-timeout into main
Reviewed-on: #475
2026-11-29 12:57:50 +00:00
Defame1297 258cbaf516 ci(molecule): say what a scenario time limit leaves running
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 31m13s
A reader of the time limit needs to know its limits: on expiry only
molecule is signalled, so its ansible-playbook and workers run until the
run container ends, and the run-label cleanup step removes anything they
recreate. The default's reasoning holds at the default 2 lanes, and the
variable is for local runs and tests only.

The timeout test now runs on one lane, so beta running proves the stalled
lane was freed. The workflows rule gives the limit its reason and names
the two tests that hold it.

Refs #474

Assisted-by: Claude Code
2026-11-29 11:56:57 +00:00
Defame1297 41820fd9a7 ci(molecule): stop a scenario that runs past its own time limit
A hung scenario held its lane until the job's 90-minute timeout, and the
cancel then lost every scenario's log, since the groups print only after
the final wait. Each molecule test now runs under coreutils timeout with
MOLECULE_SCENARIO_TIMEOUT seconds (default 1800), so the hang fails by
itself, its log says it timed out, and the other lanes finish.

timeout runs with --foreground so it and molecule stay in the script's
process group: without it timeout leads a group of its own, which a
cancel that kills the step's group no longer reaches (the killed-group
test fails). On expiry molecule alone is signalled; anything it leaves
ends with the run container (docker run --init).

Closes #474

Assisted-by: Claude Code
2026-11-29 11:42:09 +00:00
Defame1297 e8f739904a Merge pull request 'ci(molecule): run two scenarios at a time by default' (#471) from ci/432-two-lanes into main
Reviewed-on: #471
2026-11-29 11:19:49 +00:00
Defame1297 040dd9fbf2 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 35s
Lint / lint (pull_request) Successful in 3m21s
Molecule / molecule (pull_request) Successful in 30m31s
2026-11-29 10:48:29 +00:00
Defame1297 edf31df045 Merge pull request 'refactor(system_baseline): give the role's internal registers the __ prefix' (#472) from fix/system-baseline-internal-register into main
Reviewed-on: #472
2026-11-29 09:46:02 +00:00
Defame1297 6070179126 Merge branch 'main' into fix/system-baseline-internal-register
Build / build (pull_request) Successful in 32s
Lint / lint (pull_request) Successful in 2m45s
Molecule / molecule (pull_request) Successful in 5m3s
2026-11-29 09:40:19 +00:00
Defame1297 2b221b69a5 Merge branch 'main' into ci/432-two-lanes
Build / build (pull_request) Successful in 28s
Lint / lint (pull_request) Successful in 2m44s
Molecule / molecule (pull_request) Successful in 29m36s
2026-11-29 08:07:17 +00:00
Defame1297 ec972b90a4 Merge pull request 'feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work' (#470) from perf/458-traefik-scenario into main
Reviewed-on: #470
2026-11-29 08:06:45 +00:00
Defame1297 922a79a871 Merge branch 'main' into perf/458-traefik-scenario
Lint / lint (pull_request) Successful in 2m43s
Molecule / molecule (pull_request) Successful in 3m55s
Build / build (pull_request) Successful in 30s
2026-11-29 08:02:20 +00:00
Defame1297 ac8967f6a5 Merge pull request 'test(ufw): cover the service_rules cases with fewer owners' (#469) from test/457-ufw-fewer-owners into main
Reviewed-on: #469
2026-11-29 08:01:09 +00:00
Defame1297 8548ab8c9d Merge branch 'main' into test/457-ufw-fewer-owners
Lint / lint (pull_request) Successful in 3m58s
Molecule / molecule (pull_request) Successful in 12m25s
Build / build (pull_request) Successful in 27s
2026-11-29 07:48:10 +00:00
Defame1297 06853aa6f6 Merge pull request 'test(system_baseline): run the vzdump guard cases against the guard alone' (#468) from test/456-system-baseline-vzdump-guard into main
Reviewed-on: #468
2026-11-29 07:46:55 +00:00
Defame1297 035669c26f Merge branch 'main' into test/456-system-baseline-vzdump-guard
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Successful in 2m37s
Molecule / molecule (pull_request) Successful in 5m2s
2026-11-29 07:41:17 +00:00
Defame1297 ca62d4aaa8 Merge pull request 'test(docker): merge the verify role runs and assert a unit change keeps dockerd running' (#467) from test/460-docker-verify-runs into main
Reviewed-on: #467
2026-11-28 23:36:56 +00:00
Defame1297 2b2e2c4021 ci(molecule): wrap the duration list comment
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 2m57s
Molecule / molecule (pull_request) Successful in 41m21s
Part of #432

Assisted-by: Claude Code
2026-11-28 23:29:10 +00:00
Defame1297 876ff2ada5 Merge branch 'main' into test/460-docker-verify-runs
Lint / lint (pull_request) Successful in 4m41s
Molecule / molecule (pull_request) Successful in 8m7s
Build / build (pull_request) Successful in 42s
2026-11-28 23:28:03 +00:00
Defame1297 dbcbf3b02d ci(molecule): give the measured lane times as the reason for the default
Part of #432

Assisted-by: Claude Code
2026-11-28 23:26:10 +00:00
Defame1297 53f5df4378 Merge pull request 'test(gitea_runner): fold the disk-pressure run into the failed-download case' (#466) from test/459-gitea-runner-pressure into main
Reviewed-on: #466
2026-11-28 23:25:03 +00:00
Defame1297 40d5c49e33 ci(molecule): run two scenarios at a time by default
A full run on main took 34 minutes with 2 lanes and 35 with 4: with 4 every scenario ran
about twice as slowly, so the runner is full at two, and two leave it room for pull request
jobs. The duration list now holds the 2-lane run's times and adds nfs_client.

Closes #432

Assisted-by: Claude Code
2026-11-28 23:23:45 +00:00
Defame1297 4201300291 refactor(system_baseline): give the role's internal registers the __ prefix
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 4m15s
Molecule / molecule (pull_request) Successful in 13m48s
The unattended-upgrades check and the reboot-required stat registered results under
names that read as role inputs. Internal register and set_fact results are
__system_baseline_; the documented system_baseline_reboot_required output keeps its name.

Assisted-by: Claude Code
2026-11-28 23:21:56 +00:00
Defame1297 0779e8b5c7 test(ufw): cover the service_rules cases with fewer owners
Build / build (pull_request) Successful in 37s
Lint / lint (pull_request) Successful in 2m46s
Molecule / molecule (pull_request) Successful in 18m9s
The scenario called service_rules once per owner, eight times, about 30 tasks each, on every
check, converge and idempotence pass. Three owners keep every case.

- svc_a (no purge): the old svc_a (8001, 8002 with from), svc_b (8003, the 8004 deny with no
  comment or proto), svc_g (8022 with a comment mentioning 22), svc_e (7201 and the stale
  7003 kept because purging is off).
- svc_c (purge): the old svc_c (7101, stale 7001 deleted), svc_h (7301, the stale SSH
  lookalike kept), svc_p (7602, stale 7601 deleted, no-port, source-only and range rules
  kept). svc_a's stale 7003 surviving svc_c's purge proves owner isolation.
- svc_d (absent): unchanged.

The tagged total stays at 20 (svc_a 7, svc_c 7, svc_m 1, svc_o2 1, svc_o3 4) and the untagged
at 5. Converge keeps two orphan checks, one after the three cases without a purge and one after
the purge; the check after the invalid managed owner in verify goes, as the Verify play asserts
the same state. Converge gathers no facts: the role reads none.

Closes #457

Assisted-by: Claude Code
2026-11-28 21:52:36 +00:00
Defame1297 f766666476 test(system_baseline): run the vzdump guard cases against the guard alone
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 7m39s
Build / build (pull_request) Successful in 31s
Each of the seven vzdump cases ran the whole update entry point in check
mode, when they assert only the guard's decision. The guard now lives in
an internal tasks/vzdump_guard.yml, imported by update.yml so the update
tag, when and main-flow vars still reach it. Six cases include it
alone; the ubuntu_lxc case keeps running tasks_from: update end to end,
and a static check asserts the guard is imported before the upgrade and
that the upgrade's when reads its fact.

The purge of unwanted packages becomes one apt call over the installed
ones, skipped when none is installed. The scenario's gathering plays
use gather_subset min: the role reads only os_family and package_facts.

Closes #456

Assisted-by: Claude Code
2026-11-28 21:47:17 +00:00
Defame1297 7bc3cc6bdf feat(traefik): skip a fresh apt refresh and trim the scenario's repeated work
Lint / lint (pull_request) Successful in 5m47s
Molecule / molecule (pull_request) Successful in 8m58s
Build / build (pull_request) Successful in 1m16s
The prerequisites install takes only distribution packages and runs
before any source is added, yet refreshed the APT cache on every run.
It now passes cache_valid_time: 3600, as docker, system_baseline and
user_management already do; the README tells a consumer who adds a
source just before the role to refresh the cache themselves.

The default scenario repeated work other steps already cover. Verify
now exercises the update path once, to the other release, so prepare
builds only that stand-in; the role default's stand-in was used only
by the way back. mortis.kamino.ufw moves to prepare, as the ufw
scenario tests it, so converge and idempotence run only traefik, with
fact gathering off since none of the roles reads facts.

Closes #458

Assisted-by: Claude Code
2026-11-28 21:39:33 +00:00
Defame1297 2865573429 test(gitea_runner): fold the disk-pressure run into the failed-download case
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m30s
Molecule / molecule (pull_request) Successful in 3m43s
The verify step ran the whole role once only to set the disk threshold to 0. Prune runs
before update in tasks/main.yml, so the failed-download run can carry that input: the
pressure units are removed before the download fails at staging. The exact staging
message the rescue asserts comes only from update.yml, so a prune error still fails it.
The run with the scenario's inputs stays before the remove path, which needs the units back.

The forced re-registration child runs now start once instead of per host: they check only
controller state and group_vars, and run_once gives every host the registered results.

Closes #459

Assisted-by: Claude Code
2026-11-28 20:39:32 +00:00
Defame1297 be8c3f2ed9 test(docker): merge the verify role runs and assert a unit change keeps dockerd running
Lint / lint (pull_request) Successful in 3m36s
Molecule / molecule (pull_request) Successful in 7m0s
Build / build (pull_request) Successful in 34s
The verify ran the role four times to switch the unit, daemon and restart
inputs, and each run refreshed apt against the stand-in repository. Nothing
showed that removing a unit leaves dockerd running.

The daemon-settings check now runs before any role run; those runs set no
daemon input until the last play, so daemon.json still holds converge's
content. One play then runs the role twice: first with the boot unit off, a
daemon change and no restart, asserting the units, the new value and an
unchanged dockerd start time; then with both units on and a restart,
asserting the boot unit is back, the value and a new start time.

Closes #460

Assisted-by: Claude Code
2026-11-28 20:39:19 +00:00
Defame1297 716baa19c7 Merge pull request 'revert(molecule): connect with the docker CLI again' (#465) from ci/455-revert-docker-api into main
Reviewed-on: #465
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 19:52:16 +00:00
Defame1297 0961dfdff4 revert(molecule): connect with the docker CLI again
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 3m46s
Molecule / molecule (pull_request) Successful in 36m57s
Two full runs on the docker_api connection took 45 and 49 minutes against 35 on the
CLI connection, with the same tasks a median 13% slower. The fixed Python interpreter
from the same change stays.

Refs #455

Assisted-by: Claude Code
2026-11-28 19:12:18 +00:00
Defame1297 cdc5937e45 Merge pull request 'chore(apm): install the plan package' (#464) from feat/install-plan into main
Reviewed-on: #464
2026-11-28 18:46:25 +00:00
Defame1297 cd46e9dfb4 chore(apm): install holocron plan package
Lint / lint (pull_request) Successful in 4m29s
Molecule / molecule (pull_request) Successful in 12s
Build / build (pull_request) Successful in 1m6s
Adds the plan package, which turns a ticket or idea into a validated
spec and agent-ready tickets and ships the /next command. Its deployed
command is ignored like the deployed skills and agents.

The lock moves to lockfile_version 4 because apm-cli 0.38.1, the
version pinned in requirements-dev.txt, upgrades it on install.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-28 18:37:12 +00:00
Defame1297 8c3f9c4594 Merge pull request 'ci(molecule): connect over the Docker API with a fixed Python interpreter' (#463) from ci/455-docker-api-connection into main
Reviewed-on: #463
2026-11-28 17:55:54 +00:00
Defame1297 c109d24229 ci(molecule): name the issue that removes the docker CLI mount
Lint / lint (pull_request) Successful in 3m24s
Molecule / molecule (pull_request) Successful in 17s
Build / build (pull_request) Successful in 38s
Part of #455

Assisted-by: Claude Code
2026-11-28 16:27:24 +00:00
Defame1297 faf1c7e36f ci(molecule): connect over the Docker API with a fixed Python interpreter
The docker driver's community.docker.docker connection starts the docker CLI for every task
on every host, and each playbook run discovers the interpreter on every container although
both molecule images ship /usr/bin/python3. The shared base config now sets
provisioner.connection_options, which molecule merges over the driver's own connection vars
for the container hosts only, so localhost keeps the controller's Python.

community.docker 5.4.1's docker_api connection supports pipelining and become and needs only
requests, which requirements-dev.lock already pins. The docker CLI bind mount in molecule.yml
stays until a green run shows nothing needs it; its comment and two others that named the
CLI's calls now describe the API connection.

Closes #455

Assisted-by: Claude Code
2026-11-28 15:51:17 +00:00
Defame1297 b5a5a4efa1 Merge pull request 'ci(molecule): start the longest scenarios first and pass the lane count in' (#461) from ci/432-molecule-order-lanes into main
Reviewed-on: #461
Reviewed-by: Defame1297 <[email protected]>
2026-11-28 15:01:59 +00:00
Defame1297 c0c1485470 Merge branch 'main' into ci/432-molecule-order-lanes
Lint / lint (pull_request) Successful in 4m8s
Molecule / molecule (pull_request) Successful in 38m42s
Build / build (pull_request) Successful in 29s
2026-11-28 14:22:43 +00:00
Defame1297 92cf7257d4 test(molecule): wrap the runner stub under the sanity line limit
Lint / lint (pull_request) Successful in 3m51s
Molecule / molecule (pull_request) Successful in 34m54s
Build / build (pull_request) Successful in 30s
Part of #432

Assisted-by: Claude Code
2026-11-28 08:48:29 +00:00
Defame1297 e34a0eb2e0 test(molecule): derive the order test from the duration list
Part of #432. The start-order test now reads its scenarios and their seconds
from the run script's list, so a refreshed list does not break it; the
empty-lanes test only asserts the value is accepted, and the script's header
and duration-list comments are rewrapped and say the list is keyed by
scenario directory.

Assisted-by: Claude Code
2026-11-28 08:45:05 +00:00
Defame1297 ef840c8952 ci(molecule): start the longest scenarios first and pass the lane count in
Part of #432. A long scenario started late sets the end of a full run, so
run_molecule_scenarios.sh now starts scenarios by the durations of the last
full run, longest first, with an unlisted scenario first; the log groups keep
the selection order. A workflow_dispatch input `lanes` reaches the script as
MOLECULE_LANES, so full runs with different lane counts can be compared; an
empty value keeps the default of 4.

The shared molecule config enables ansible.posix.profile_tasks (summary only)
and ansible.posix.timer, so each scenario's log shows where its time goes.

Assisted-by: Claude Code
2026-11-28 08:36:20 +00:00
Defame1297 29db4985fe Merge pull request 'feat(nfs_client): add a role that manages NFS client entries in fstab' (#451) from feat/402-nfs-client into main
Reviewed-on: #451
2026-11-28 08:25:06 +00:00
Defame1297 1fedced1d3 Merge branch 'main' into feat/402-nfs-client
Build / build (pull_request) Successful in 30s
Molecule / molecule (pull_request) Successful in 1m42s
Lint / lint (pull_request) Successful in 2m29s
2026-11-28 08:22:32 +00:00
Defame1297 a2ab13a6e1 Merge pull request 'feat(docker): pin the Docker apt key by checksum' (#454) from feat/448-docker-keyring-checksum into main
Reviewed-on: #454
2026-11-28 08:22:23 +00:00
Defame1297 a185a301db docs(docker): say the keyring checksum follows an overridden key URL
Lint / lint (pull_request) Successful in 3m37s
Molecule / molecule (pull_request) Successful in 7m29s
Build / build (pull_request) Successful in 28s
Set docker_keyring_checksum together with docker_gpg_url, and state that
the checksum is the hex digest without the sha256: prefix.

Assisted-by: Claude Code
2026-11-27 22:25:00 +00:00
Defame1297 c7c38c6bc0 feat(docker): pin the Docker apt key by checksum
The key that signs the Docker repository was trusted as whatever the URL served. It is now checked
against a pinned sha256, so a changed key stops the install until a person has verified it.

Assisted-by: Claude Code
2026-11-27 22:09:56 +00:00
Dragonish fcd2290e14 test(nfs_client): refresh the apt cache in the scenario's prepare
Molecule / molecule (pull_request) Successful in 2m5s
Lint / lint (pull_request) Successful in 2m47s
Build / build (pull_request) Successful in 31s
The molecule image ships without apt lists, and --check does not refresh
them, so the fresh-host check found no nfs-common to install and failed
with "No package matching 'nfs-common' is available". The docker, pihole,
system_baseline and traefik scenarios refresh the cache in prepare for the
same reason.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:55:02 +00:00
Dragonish 5ce5e3c932 feat(nfs_client): add a role that manages NFS client entries in fstab
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Failing after 43s
Lint / lint (pull_request) Successful in 1m53s
Installs nfs-common and manages NFS mount entries from nfs_client_mounts
(src, path, optional opts, state present or absent). Each mount point is
created without owner, group or mode, because once a share is mounted a
chown or chmod there changes the permissions on the NFS server. The role
writes only the fstab line and reloads systemd; it never mounts or
unmounts. An absent entry maps to ansible.posix.mount's absent_from_fstab,
which removes the line and leaves the share and the directory alone.

The default options are _netdev,nofail. x-systemd.automount is left out.

Verified locally: yamllint, ansible-lint (production profile), syntax check
of the scenario playbooks, the controller-side refusals of verify.yml (14
cases, each matched on its own message), and the module's fstab behaviour
against a scratch fstab (replacement, absent_from_fstab, idempotence).
Not verified: Molecule, which runs only in CI; the apt install and the
daemon-reload handler; that systemd generates the mount units in the
scenario's containers.

Refs #402

Assisted-by: Claude Code
2026-11-27 21:47:09 +00:00
Defame1297 b3b62121a3 Merge pull request 'chore(release): 3.2.0' (#450) from chore/release-3.2.0 into main
Build / build (push) Successful in 17s
Reviewed-on: #450
2026-11-27 21:45:36 +00:00
Defame1297 b7bac07757 chore(release): 3.2.0
Molecule / molecule (pull_request) Successful in 6s
Lint / lint (pull_request) Successful in 1m35s
Build / build (pull_request) Successful in 29s
Minor release: new inputs for system_baseline (extra packages, skipping
the upgrade during a vzdump backup, leaving journald alone), cloudflared
and traefik, a staleness window for distribution-only APT refreshes, and
facts read through ansible_facts in docker, gitea_runner and
system_baseline.

Assisted-by: Claude Code
2026-11-27 21:36:05 +00:00
Defame1297 30a8e71f97 Merge pull request 'fix(system_baseline): accept every size journald reads for the journal cap' (#449) from fix/journal-max-use-syntax into main
Reviewed-on: #449
2026-11-27 21:33:50 +00:00
Defame1297 985995656a fix(system_baseline): accept every size journald reads for the journal cap
Lint / lint (pull_request) Successful in 2m47s
Molecule / molecule (pull_request) Successful in 6m7s
Build / build (pull_request) Successful in 48s
The new check on system_baseline_journal_max_use refused sizes journald
accepts (a bare byte count, 1.5G, 10 M, P and E units), which 3.1.0
wrote as given, and accepted infinity, which SystemMaxUse does not take.
The check now follows journald's parse_size(): a number with an
optional upper-case B, K, M, G, T, P or E, still with no line break.

Assisted-by: Claude Code
2026-11-27 21:24:32 +00:00
Defame1297 5ac8eadac1 Merge pull request 'chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.11' (#447) from renovate/own-ci-images into main
Reviewed-on: #447
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 20:01:04 +00:00
renovate-bot 1ab99405ea chore(deps): update git.rkdr.net/mortis/molecule-ubuntu2404 docker tag to v0.1.11
renovate/stability-days Updates have met minimum release age requirement
Lint / lint (pull_request) Successful in 3m27s
Build / build (pull_request) Successful in 1m14s
Molecule / molecule (pull_request) Successful in 34m35s
2026-11-27 19:25:48 +00:00
Defame1297 5fa17e036c Merge pull request 'feat(system_baseline): optionally skip the upgrade while a vzdump backup is running' (#410) from feat/400-skip-upgrade-during-vzdump into main
Reviewed-on: #410
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 19:24:38 +00:00
Defame1297 dab3bd2d44 Merge branch 'main' into feat/400-skip-upgrade-during-vzdump
Lint / lint (pull_request) Successful in 2m30s
Molecule / molecule (pull_request) Successful in 6m20s
Build / build (pull_request) Successful in 31s
2026-11-27 19:17:40 +00:00
Defame1297 1be02c574b Merge pull request 'feat(cloudflared): add cloudflared_tunnel_lookup_delay input' (#441) from feat/cloudflared-lookup-delay into main
Reviewed-on: #441
2026-11-27 19:14:48 +00:00
Defame1297 084d2d592f Merge branch 'main' into feat/cloudflared-lookup-delay
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 2m55s
Molecule / molecule (pull_request) Successful in 3m34s
2026-11-27 19:06:43 +00:00
Defame1297 90f27812eb Merge pull request 'test(tailscale): let apt reuse downloaded packages in the default scenario' (#440) from test/tailscale-reuse-debs into main
Reviewed-on: #440
2026-11-27 19:00:28 +00:00
Defame1297 a5c1426b25 Merge branch 'main' into test/tailscale-reuse-debs
Lint / lint (pull_request) Successful in 2m24s
Molecule / molecule (pull_request) Successful in 2m47s
Build / build (pull_request) Successful in 37s
2026-11-27 18:56:36 +00:00
Defame1297 4c1cba6e35 Merge pull request 'feat(traefik): add traefik_release_url for a release mirror' (#445) from feat/traefik-release-url into main
Reviewed-on: #445
2026-11-27 18:54:23 +00:00
Defame1297 008039c60c Merge remote-tracking branch 'origin/main' into feat/400-skip-upgrade-during-vzdump
Lint / lint (pull_request) Successful in 2m46s
Build / build (pull_request) Successful in 38s
Molecule / molecule (pull_request) Successful in 9m12s
Assisted-by: Claude Code
2026-11-27 18:52:49 +00:00
Defame1297 6364445e3c Merge branch 'main' into feat/traefik-release-url
Build / build (pull_request) Successful in 38s
Lint / lint (pull_request) Successful in 2m36s
Molecule / molecule (pull_request) Successful in 5m10s
2026-11-27 18:48:13 +00:00
Defame1297 30352502dd Merge pull request 'feat: refresh the APT cache on distribution-only installs when stale' (#443) from feat/apt-cache-valid-time into main
Reviewed-on: #443
2026-11-27 18:43:54 +00:00
Defame1297 9ae5eca2a3 Merge branch 'main' into feat/apt-cache-valid-time
Lint / lint (pull_request) Successful in 4m10s
Molecule / molecule (pull_request) Successful in 11m57s
Build / build (pull_request) Successful in 31s
2026-11-27 18:31:05 +00:00
Defame1297 b3037273b7 Merge pull request 'ci: turn on Ansible pipelining for Molecule scenarios' (#446) from ci/molecule-pipelining into main
Reviewed-on: #446
2026-11-27 18:07:33 +00:00
Defame1297 34990718f0 Merge branch 'main' into ci/molecule-pipelining
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 2m58s
Molecule / molecule (pull_request) Successful in 37m27s
2026-11-27 17:29:13 +00:00
Defame1297 47540320b6 Merge pull request 'ci: share a Molecule base config with prerun off and smart gathering' (#444) from ci/molecule-shared-config into main
Reviewed-on: #444
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 17:28:18 +00:00
Defame1297 afd62a8cbb Merge branch 'main' into ci/molecule-shared-config
Lint / lint (pull_request) Successful in 3m4s
Molecule / molecule (pull_request) Successful in 47m44s
Build / build (pull_request) Successful in 30s
2026-11-27 16:35:18 +00:00
Defame1297 810a74d8e5 Merge pull request 'test: check refusals once on the controller in verify' (#442) from test/refusals-in-verify into main
Reviewed-on: #442
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:32:23 +00:00
Defame1297 87738f65fd Merge branch 'main' into test/refusals-in-verify
Lint / lint (pull_request) Successful in 3m20s
Molecule / molecule (pull_request) Successful in 22m24s
Build / build (pull_request) Successful in 29s
2026-11-27 16:09:20 +00:00
Defame1297 48e6dcb543 Merge pull request 'ci(molecule): select by image pin for a molecule.yml change of only pins or comments' (#439) from ci/selector-narrow-pins into main
Reviewed-on: #439
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:08:45 +00:00
Defame1297 7df98ea8c7 Merge branch 'main' into ci/selector-narrow-pins
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s
Build / build (pull_request) Successful in 28s
2026-11-27 16:07:04 +00:00
Defame1297 4a6db3382c Merge pull request 'docs(adr): run Molecule in its own controller image' (#437) from docs/adr-molecule-controller-image into main
Reviewed-on: #437
2026-11-27 16:06:47 +00:00
Defame1297 5e230201e6 Merge branch 'main' into docs/adr-molecule-controller-image
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 5s
Lint / lint (pull_request) Successful in 1m33s
2026-11-27 16:05:04 +00:00
Defame1297 114a21fc0f Merge pull request 'docs: update a branch from main only when it is next to merge' (#436) from docs/branch-update-rule into main
Reviewed-on: #436
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 16:04:44 +00:00
Defame1297 c33da78633 Merge branch 'main' into docs/branch-update-rule
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m33s
Build / build (pull_request) Successful in 29s
2026-11-27 16:03:01 +00:00
Defame1297 7dbf9a1bd0 Merge pull request 'ci(renovate): group updates and open them on Mondays' (#438) from ci/renovate-group-schedule into main
Reviewed-on: #438
2026-11-27 16:02:48 +00:00
Defame1297 6c031acc26 Merge branch 'main' into ci/renovate-group-schedule
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m36s
Build / build (pull_request) Successful in 31s
2026-11-27 15:59:47 +00:00
Defame1297 380d52cd13 ci: turn on Ansible pipelining for Molecule scenarios
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 7s
Lint / lint (pull_request) Canceled after 7s
Set connection.pipelining in the shared Molecule base config. Without
it, every remote task over the community.docker.docker connection pays
extra docker exec and docker cp calls to create a temp dir, copy the
module in and clean up; with it, the module goes over stdin.

The docker connection declares has_pipelining and has no pipelining
option of its own, so core's global setting applies. No role or image
sets requiretty.

Closes #423

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:44:34 +00:00
Defame1297 ab0ce421cc feat(traefik): add traefik_release_url for a release mirror
Lint / lint (pull_request) Canceled after 0s
Molecule / molecule (pull_request) Canceled after 0s
Build / build (pull_request) Canceled after 0s
The archive and checksums URLs were hardcoded to the GitHub releases.
traefik_release_url (default: the GitHub release directory of
traefik_version, as before) lets a host download from a mirror.

The Molecule scenario uses it: verify's update path now downloads
stand-in releases that prepare.yml builds under /opt/molecule-download
(a stub binary answering `version`, its archive and a sha256sum
checksums file), so it no longer fetches two more real releases per
host. The converge still downloads the real release from GitHub, which
keeps the default URL proven. traefik_verify_other_version moves to the
scenario's group vars so prepare and verify share it. The update path
leaves the stub installed, which the README and verify now state.

Verify replaces the fixed 15 s pause with a poll (30 x 2 s) for an
"Unable to obtain ACME certificate" log line stamped at or after the
running process's ExecMainStartTimestamp, so a line left by the
process converge restarted does not count. It fails closed on a
missing start time, a missing line or an unparseable stamp. It then
asserts NRestarts
is 0, since Restart=always would hide a crash.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:36:34 +00:00
Defame1297 7d11d23294 ci: share a Molecule base config with prerun off and smart gathering
Lint / lint (pull_request) Successful in 5m11s
Molecule / molecule (pull_request) Canceled after 16m59s
Build / build (pull_request) Successful in 50s
Add .config/molecule/config.yml, which molecule merges under every
scenario's molecule.yml. prerun is off: the CI wrapper already puts the
checkout first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario
reinstall of mortis.kamino into ANSIBLE_HOME is redundant. gathering is
smart, so each host's facts are gathered once per playbook run instead
of in every play.

Add .config to build_ignore so scripts/check_tarball.py does not fail
the build, and reword the Molecule rule and the two script comments that
said molecule installs the collection into each scenario's ANSIBLE_HOME.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:20:18 +00:00
Defame1297 0973f39831 feat: refresh the APT cache on distribution-only installs when stale
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m18s
Molecule / molecule (pull_request) Canceled after 26m49s
The docker prerequisites and the system_baseline packages install only
from the distribution's sources, yet refreshed the APT cache on every
run. They now pass cache_valid_time: 3600, as the system_baseline update
task and user_management already do.

The docker and tailscale installs from the role's own APT source keep
refreshing on every run, so a run that wrote the source line but failed
to fetch its lists heals on the next run. The update entry points are
unchanged.

The system_baseline README tells a consumer who adds a source just
before the role to refresh the cache themselves.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:10:32 +00:00
Defame1297 2e70980b44 test: check refusals once on the controller in verify
Build / build (pull_request) Successful in 1m10s
Lint / lint (pull_request) Successful in 2m54s
Molecule / molecule (pull_request) Successful in 18m44s
converge.yml is replayed by check, converge, check and idempotence on
both platforms, so the validation-only plays in it ran eight times per
scenario. They need no container: move them to the top of verify.yml,
on localhost in check mode, so they run once and a regressed refusal
cannot change the controller.

Applies to the default scenarios of system_baseline, docker, sshd and
systemd_hardening. The systemd_hardening refusal of a drop-in entry
that is not a mapping comes after the disable and mask tasks, so it
moves to verify.yml but stays on the container. The README Tests
sections say where each check now runs.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 15:05:34 +00:00
Defame1297 6eca2f4031 ci(molecule): select by image pin for a molecule.yml change of only pins or comments
Lint / lint (pull_request) Successful in 1m59s
Molecule / molecule (pull_request) Successful in 1m37s
Build / build (pull_request) Successful in 29s
A change to .gitea/workflows/molecule.yml selected every scenario, so a
molecule image pin bump or a comment edit ran the full set. The selector
now compares the merge-base and HEAD copies of the workflow:

- `#` and blank lines outside a block scalar are dropped; inside one
  (a `run: |` script, where they may be heredoc content) they count;
- the line after each CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_2604
  `>-` key must be its value, deeper than the key and in the shape
  Renovate writes, in both copies;
- comments only select nothing; a MOLECULE_IMAGE* pin selects every
  scenario with a file naming it, or every scenario when a shared
  molecule file names it or a file is unreadable or a symlink;
- CI_IMAGE, any other difference or a git error selects everything.

reason_for() is split out of select() to stay under ruff's complexity
limit. The Molecule rule in .gitea/workflows/AGENTS.md describes the
new case.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:36:24 +00:00
Defame1297 16b1aa4136 ci(renovate): group updates and open them on Mondays
Build / build (pull_request) Successful in 23s
Molecule / molecule (pull_request) Successful in 1m13s
Lint / lint (pull_request) Successful in 2m11s
Updates, lock file maintenance included, open on Mondays (UTC) so any
Monday run can act, with no hourly pull request limit; the weekly window
and the groups bound the volume. Groups: own CI images (ci and both
molecule pins, exempt from the schedule), ubuntu base images (Dockerfile
FROM and image.yml job_image digests in one branch, so manual), lint
tooling and pre-commit hooks. osvVulnerabilityAlerts brings fixes from
osv.dev; they skip the schedule and the release-age wait, so
vulnerabilityAlerts.automerge false keeps a person on each one.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:25:23 +00:00
Defame1297 1048628cc4 feat(cloudflared): add cloudflared_tunnel_lookup_delay input
Build / build (pull_request) Successful in 41s
Lint / lint (pull_request) Successful in 3m27s
Molecule / molecule (pull_request) Successful in 4m11s
The tunnel lookup retries a 404 three times, 5 seconds apart, before it
trusts it. The new input sets that delay (default 5, as before), and
validate.yml refuses a negative value. The Molecule failure cases pass 0:
the stub API answers at once, and the three retries still run.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:14:56 +00:00
Defame1297 0eade70b56 test(tailscale): let apt reuse downloaded packages in the default scenario
Build / build (pull_request) Successful in 23s
Lint / lint (pull_request) Successful in 2m17s
Molecule / molecule (pull_request) Successful in 6m14s
The Ubuntu base image's /etc/apt/apt.conf.d/docker-clean deletes every
downloaded .deb after an install, so verify's downgrade, update and
reinstalls fetched tailscale from pkgs.tailscale.com again each time. A
prepare playbook removes it; the install from the real repository stays,
and apt still checks a cached .deb against the repository's hashes.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 14:10:53 +00:00
Defame1297 e4eb3bc656 Merge branch 'main' into docs/branch-update-rule
Molecule / molecule (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 1m29s
Build / build (pull_request) Successful in 34s
2026-11-27 14:09:00 +00:00
Defame1297 15c3731e7f Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.47' (#416) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #416
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 14:02:47 +00:00
Defame1297 04259751ad docs(adr): point ADR 0002 to ADR 0003 and sharpen 0003
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Canceled after 50s
Molecule / molecule (pull_request) Canceled after 8s
ADR 0002's image bullet now names ADR 0003 as the decision that adds
Molecule's controller image; its decision is unchanged. ADR 0003 states
the Lint-only share of ci pin pull requests as a count and lists the
push paths of image.yml among the files the implementation updates.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:50:55 +00:00
Defame1297 699179674f docs: bring a renovate/ branch up to date through its rebase checkbox
Lint / lint (pull_request) Successful in 3m38s
Molecule / molecule (pull_request) Successful in 2m37s
Build / build (pull_request) Successful in 1m19s
A Renovate pull request is not always rebased just for falling
behind main, so forbidding every update would leave it stuck. Never
use the update button on it; tick the rebase/retry checkbox instead,
and say why a hand-made update commit is excluded.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:45:55 +00:00
Defame1297 bf604a1af2 docs(adr): run Molecule in its own controller image
Record ADR 0003: Molecule runs in a molecule-controller image that bakes
only Molecule's tools, from a requirements file and hash-pinned lock of
its own, so a ci pin pull request no longer moves molecule.yml and runs
no scenario. The ADR lists the files the implementation updates and the
alternatives not taken.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:38:09 +00:00
Defame1297 3d2fab5388 docs: update a branch from main only when it is next to merge
main blocks an outdated branch, so every update re-runs Lint, Build
and Molecule and cancels the run in progress. Limit updates to the
pull request that is next to merge, schedule its merge afterwards,
and leave renovate/ branches to Renovate's own rebase.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-27 13:37:49 +00:00
renovate-bot 042051b3e5 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.48
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 24s
Build / build (pull_request) Successful in 1m28s
Lint / lint (pull_request) Successful in 2m13s
Molecule / molecule (pull_request) Successful in 57m8s
2026-11-27 13:02:52 +00:00
Defame1297 6e3ea4521b Merge pull request 'chore(deps): update dependency community.docker to v5.4.1' (#414) from renovate/community.docker-5.x into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 19s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 44s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 5m52s
Reviewed-on: #414
2026-11-27 12:54:31 +00:00
renovate-bot 7433a37697 chore(deps): update dependency community.docker to v5.4.1
renovate/stability-days Updates have met minimum release age requirement
Lint / lint (pull_request) Successful in 2m26s
Molecule / molecule (pull_request) Successful in 1h15m2s
Build / build (pull_request) Successful in 25s
2026-11-27 11:39:00 +00:00
Defame1297 0b8c45a19c Merge pull request 'chore(deps): update ubuntu:24.04 docker digest to 562111b' (#412) from renovate/job-container-ubuntu-24.04 into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 15s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 1m7s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 12s
Reviewed-on: #412
Reviewed-by: Defame1297 <[email protected]>
2026-11-27 11:29:50 +00:00
renovate-bot 2d4d44b871 chore(deps): update ubuntu:24.04 docker digest to 562111b
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 22s
Molecule / molecule (pull_request) Successful in 56s
Lint / lint (pull_request) Successful in 2m3s
2026-11-27 11:27:28 +00:00
Dragonish d862097b9c Merge pull request 'fix: read facts through ansible_facts and run Molecule with fact injection off' (#405) from fix/364-ansible-facts into main
Reviewed-on: #405
2026-11-27 11:23:39 +00:00
Defame1297 6670ab664f Merge branch 'main' into fix/364-ansible-facts
Lint / lint (pull_request) Successful in 2m5s
Molecule / molecule (pull_request) Successful in 1h25m40s
Build / build (pull_request) Successful in 26s
2026-11-27 09:56:11 +00:00
Dragonish 3a5040aae8 fix: read getent results through ansible_facts in two verify plays
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m52s
Molecule / molecule (pull_request) Successful in 44m53s
The pihole and user_management scenarios read getent_passwd and
getent_shadow as top-level variables. The getent module returns them as
facts, which are injected as variables only while inject_facts_as_vars
is on, so with the setting this pull request turns on in the molecule
job the two verify plays failed (exit 2 in both runs of this pull
request, whose per-scenario logs were not printed).

They now read ansible_facts['getent_passwd'] and
ansible_facts['getent_shadow']. The remaining module-returned facts in
roles/ and extensions/ (package_facts, service_facts, the getent read in
user_management's ssh_keys.yml) are already read through ansible_facts.

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-26 23:58:23 +00:00
Dragonish 11fec7c8fc ci: rerun the molecule job to capture the scenario logs
Build / build (pull_request) Successful in 40s
Lint / lint (pull_request) Successful in 2m45s
Molecule / molecule (pull_request) Failing after 45m4s
The molecule job of the previous head ended at its timeout before it
printed the per-scenario logs, so the exit 2 of pihole and
user_management has no output. No file changes.

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-26 23:03:51 +00:00
Dragonish 5519733312 feat(system_baseline): optionally skip the upgrade while a vzdump backup is running
Build / build (pull_request) Successful in 42s
Lint / lint (pull_request) Successful in 2m48s
Molecule / molecule (pull_request) Successful in 15m25s
An apt upgrade of a Proxmox node can restart Proxmox services while a
backup holds a snapshot of a guest, and the role had no way to say
"not now".

system_baseline_skip_upgrade_during_vzdump (bool, default false) makes
the main flow and the update entry point ask the node for its running
tasks (pvesh get /nodes/localhost/tasks --source active) before the
upgrade, on the pve system type only. A vzdump task without an end time
skips the upgrade with a message; autoremove, autoclean and the reboot
check still run. The role does not wait for the backup. A pvesh answer
that is not a JSON list stops the run. With the default no pvesh
command runs.

Closes #400

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-26 22:49:33 +00:00
Defame1297 464cc5848b Merge branch 'main' into fix/364-ansible-facts
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m56s
Molecule / molecule (pull_request) Failing after 45m4s
2026-11-26 21:50:58 +00:00
Defame1297 d1b4501c2b Merge branch 'main' into fix/364-ansible-facts
Lint / lint (pull_request) Successful in 2m10s
Molecule / molecule (pull_request) Canceled after 5m20s
Build / build (pull_request) Successful in 29s
2026-11-26 21:44:16 +00:00
Dragonish 26b6e37a09 fix: read facts through ansible_facts and run Molecule with fact injection off
Build / build (pull_request) Successful in 34s
Lint / lint (pull_request) Successful in 2m32s
Molecule / molecule (pull_request) Canceled after 6m34s
ansible-core deprecates injecting facts as top-level variables (removal is
scheduled for 2.24, see #364). Three roles still read a bare fact: system_baseline (reboot check,
ansible_os_family), docker (APT source line, ansible_distribution_release)
and gitea_runner (re-registration backup name, ansible_date_time). With
inject_facts_as_vars set to false the system_baseline reboot check failed
with "'ansible_os_family' is undefined".

They now read ansible_facts[...]; the argument specs and READMEs that name
the facts follow. run_molecule_in_ci_image.sh exports
ANSIBLE_INJECT_FACT_VARS=False, so a role that reads an injected fact fails
its scenario, and a script test keeps the export in place.

Refs #364

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-26 21:33:03 +00:00
145 changed files with 4858 additions and 1138 deletions

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
---
# Merged under every scenario's molecule.yml. prerun off: the CI wrapper puts this checkout
# first on ANSIBLE_COLLECTIONS_PATH, so molecule's per-scenario install is unused.
prerun: false
provisioner:
# Merged over the docker driver's own connection vars, for the container hosts only: localhost
# keeps the controller's Python.
connection_options:
# Both molecule images ship it; a fixed path skips interpreter discovery in every playbook run.
ansible_python_interpreter: /usr/bin/python3
config_options:
connection:
# Pipe each module over stdin: without it every task pays extra docker exec and docker cp
# calls to make a temp dir, copy the module in and clean up.
pipelining: true
defaults:
# Gather each host's facts once per playbook run, not in every play.
gathering: smart
# Per-task timings, to see what a scenario's time goes to; ansible.posix is in the molecule-controller image
# and in requirements.yml, so the controller always has these callbacks.
callbacks_enabled: ansible.posix.profile_tasks, ansible.posix.timer
callback_profile_tasks:
summary_only: true
task_output_limit: 20
+35 -16
View File
@@ -80,19 +80,26 @@ issue.
- **What a pull request runs is chosen by `scripts/select_molecule_scenarios.py`:** the scenarios
of the roles it changes and of the roles that use them (any file naming
`mortis.kamino.<role>`, transitively), none for a diff of only IGNORED paths, a failure for a
changed role with no scenario, and every scenario for any other file. *Why:* a full run takes
the single runner slot for a long time. *Held:* control: the selector and its tests.
changed role with no scenario, for a `.gitea/workflows/molecule.yml` diff of only comments
(outside `run:` scripts) or image pins the scenarios that name a changed `MOLECULE_IMAGE*` pin
(every scenario for `CONTROLLER_IMAGE`, or when a shared molecule file names the pin), and every
scenario for any other file, `requirements-molecule.*` included; `requirements-dev.*`, and
`lint.yml` and `build.yml` with their `ci` pins, are on IGNORED. *Why:* a full run takes the
single runner slot for a long time. *Held:* control: the selector and its tests.
- **A role named in an include, import, play `roles:` entry or meta dependency is written out in
full**, never bare or templated. *Why:* the selector finds dependent roles by their FQCN.
*Held:* control: a selector test fails a bare or templated name.
- **Scenarios load `mortis.kamino` from the checkout, never from molecule's installed copy, so
`galaxy.yml` is on IGNORED.** *Why:* molecule installs the collection from `galaxy.yml` into
each scenario's `ANSIBLE_HOME`, which is not on `ANSIBLE_COLLECTIONS_PATH`, so its changes
- **Scenarios load `mortis.kamino` from the checkout, never from an installed copy, so
`galaxy.yml` is on IGNORED.** *Why:* the checkout is first on `ANSIBLE_COLLECTIONS_PATH` and the
shared base config `.config/molecule/config.yml` turns off molecule's install of the collection
(`prerun: false`), so changes to `galaxy.yml`
(release versions, `build_ignore`) do not change what a scenario runs, and the Build check
proves the collection builds; they had caused about a third of full pull request runs and their
minutes (#338). *Held:* control: `scripts/check_scenarios_load_checkout.py`, which
`run_molecule_in_ci_image.sh` runs on the selected scenarios before they start, fails the run
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else.
when the environment molecule gives `ansible-playbook` resolves `mortis.kamino` anywhere else,
or when `prerun` is not off once the base config is merged as molecule's CLI merges it (a
scenario turns it on, or the base config is moved or turns it on).
A pull request that selects no scenario runs no check; the next one that does, and the nightly
run, catch a change that broke the rule.
- **A new file outside `roles/<role>/` runs every scenario until it is added to IGNORED, and it
@@ -106,17 +113,29 @@ issue.
concurrency group of its own.** Runs may overlap on the runner's Docker daemon: every container
is named and labelled by its run (`KAMINO_RUN_ID`). The job first removes labelled containers
older than its timeout, which a cancelled run left, and finally its own. The scenarios of one
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time), so no two
scenarios may share a platform name. *Why:* a cancelled run is killed before it can remove its
instances, and a younger container may belong to a run still going. *Held:* review; control:
the names and labels by the test the `test_sequence` rule below names, and the sweep's age bound
equal to the job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`.
run overlap (`scripts/run_molecule_scenarios.sh`, `MOLECULE_LANES` at a time, 2 unless a manual
dispatch sets its `lanes` input), so no two scenarios may share a platform name. They start
longest first by the script's list of last full-run times, an unlisted one first; the logs stay
in selection order. A scenario still running at the script's per-scenario limit is stopped and
fails. *Why:* a cancelled run is killed before it can remove its instances, a younger container
may belong to a run still going, a long scenario started late sets the end of the run, and a
hang that fails alone inside the job timeout still lets every scenario's log print. *Held:*
review; control: the start order by `test_the_longest_scenarios_start_first` and the input by
`LanesInputTest`, both in `tests/scripts/test_run_molecule_scenarios.py`; control: the names and
labels by the test the `test_sequence` rule below names, and the sweep's age bound equal to the
job timeout by `test_the_sweep_spares_containers_younger_than_the_job_timeout` in
`tests/scripts/test_run_molecule_scenarios.py`; control: the limit by
`test_a_scenario_past_its_time_limit_fails_alone` and
`test_the_default_time_limit_is_inside_the_job_timeout`, in the same file.
- **Molecule tests the pull request's pins, as Lint and Build do.** It runs molecule in the pinned
`ci` image and, when a pin file differs from `/opt/ci-pins.sha256`, installs the pull request's
tools and the collections of `requirements.yml` and `extensions/molecule/requirements.yml` first.
*Why:* a pull request that raises the ansible-core floor must run its scenarios on the new core
before it automerges. *Held:* control: the pin comparison in `molecule.yml`.
`molecule-controller` image ([ADR 0003](../../docs/adr/0003-molecule-controller-image.md)) and,
when a pin file differs from `/opt/molecule-pins.sha256`, installs the pull request's tools from
`requirements-molecule.lock` and the collections of `requirements.yml` and
`extensions/molecule/requirements.yml` first. A change to `requirements-molecule.txt` or
`requirements-molecule.lock` selects every scenario; `requirements-dev.*` pins only Lint's tools
and selects none. *Why:* a pull request that bumps ansible-core or molecule must run its
scenarios on them before it automerges. *Held:* control: the pin comparison in
`run_molecule_in_ci_image.sh`, and the selector's tests for which pin files select what.
- **Every scenario sets `scenario.test_sequence` to molecule's default minus both `destroy`
steps, with a role scenario's `check` right before and right after `converge`, names each
platform `${KAMINO_RUN_ID:-local}-<name>` and labels it
+1 -1
View File
@@ -28,7 +28,7 @@ jobs:
timeout-minutes: 30
# The ci image (images/ci, built by image.yml): tag for the release, digest enforced.
container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
steps:
+1 -1
View File
@@ -44,7 +44,7 @@ jobs:
# The ci image (images/ci, built by image.yml), at the pin of lint.yml: tag for the
# release, digest enforced. Only its /opt/venv Python (with PyYAML) is used here.
container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
steps:
# The container has no Node, so JavaScript actions such as actions/checkout
# cannot run; clone with git and the job token.
+11 -2
View File
@@ -2,7 +2,8 @@ name: Images
# Builds the images under images/ with kaniko (osscontainertools fork, v1.28.6) and
# pushes them to git.rkdr.net/mortis/<name>: the molecule
# test targets (molecule-ubuntu2404, molecule-ubuntu2604) and the lint/build tooling (ci).
# test targets (molecule-ubuntu2404, molecule-ubuntu2604), the lint/build tooling (ci) and
# the Molecule controller (molecule-controller).
#
# Never on pull_request: a workflow file comes from the PR head, so a fork PR could
# otherwise push to the registry. This workflow has no pull_request trigger, and the job
@@ -44,6 +45,9 @@ on: # yamllint disable-line rule:truthy
- 'requirements.yml'
- 'extensions/molecule/requirements.yml'
- '.pre-commit-config.yaml'
# The molecule-controller image bakes these (images/molecule-controller/Dockerfile).
- 'requirements-molecule.txt'
- 'requirements-molecule.lock'
- '.gitea/workflows/image.yml'
workflow_dispatch: {}
@@ -79,7 +83,7 @@ jobs:
base: "0.1"
subpath: images/molecule-ubuntu2404
dockerfile: Dockerfile
job_image: ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289
job_image: ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
- name: molecule-ubuntu2604
base: "0.1"
subpath: images/molecule-ubuntu2604
@@ -90,6 +94,11 @@ jobs:
subpath: ""
dockerfile: images/ci/Dockerfile
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
- name: molecule-controller
base: "0.1"
subpath: ""
dockerfile: images/molecule-controller/Dockerfile
job_image: ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
container:
image: ${{ matrix.job_image }}
# Keeps a runaway build from taking the whole runner down with it.
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
# The tag says which release, the digest is what is enforced (bump both together
# when image.yml publishes a new version).
container:
image: git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
image: git.rkdr.net/mortis/ci:0.2.48@sha256:d1c6653255abf366462c0265d9372626d5b59095084fe74ae95b9ebe7414007d
env:
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PRE_COMMIT_HOME: /opt/pre-commit
+22 -12
View File
@@ -11,11 +11,12 @@ name: Molecule
# own workflow file. The boundaries are write access, which only trusted people have, and Gitea's
# approval gate on fork runs, which the fork rule in docs/contributing/reviewing.md keeps shut.
#
# molecule runs in the pinned ci image via `docker run` with the runner's Docker socket, so the
# scenario containers start beside it on the runner's daemon; the job tree is mounted at the same
# path, so the paths molecule hands the daemon resolve. Like Lint and Build, it installs the pull
# request's pins when they differ from the image's. The images are pinned by tag and digest: bump
# them here when image.yml publishes a new ci, molecule-ubuntu2404 or molecule-ubuntu2604 version.
# molecule runs in the pinned molecule-controller image via `docker run` with the runner's Docker
# socket, so the scenario containers start beside it on the runner's daemon; the job tree is mounted
# at the same path, so the paths molecule hands the daemon resolve. Like Lint and Build, it installs
# the pull request's pins when they differ from the image's. The images are pinned by tag and
# digest: bump them here when image.yml publishes a new molecule-controller, molecule-ubuntu2404 or
# molecule-ubuntu2604 version.
on: # yamllint disable-line rule:truthy
pull_request:
branches:
@@ -24,7 +25,13 @@ on: # yamllint disable-line rule:truthy
# drift in the others (a package mirror) would otherwise go unseen. After Renovate's 03:17 run.
schedule:
- cron: "43 4 * * *"
workflow_dispatch: {}
workflow_dispatch:
inputs:
lanes:
description: Scenarios run at a time (empty for the default of run_molecule_scenarios.sh)
required: false
type: string
default: ""
permissions:
contents: read
@@ -51,13 +58,14 @@ jobs:
# age past which the sweep step removes a run's containers; a script test holds the two equal.
timeout-minutes: 90
env:
# The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >-
git.rkdr.net/mortis/ci:0.2.46@sha256:a03015cc2177bdd6ef7f348f245a89f361893c7c64edc1264d9f9c1387d9defc
# The tools and collections molecule runs with, apart from Lint's (ADR 0003), so a tool
# bump only Lint uses selects no scenario.
CONTROLLER_IMAGE: >-
git.rkdr.net/mortis/molecule-controller:0.1.0@sha256:d4ab16d58851eead751c8f0bada8edd76c9e5dcd5c2acaa1ac93c5f6035b29e2
# Used by the scenarios as `image: ${MOLECULE_IMAGE}`; set it the same way to run
# one locally.
MOLECULE_IMAGE: >-
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.10@sha256:7cdb45688667ade43a8026bdc725489a557fde7ce893123c4ee6b8d125c3fec6
git.rkdr.net/mortis/molecule-ubuntu2404:0.1.11@sha256:e7389be9c397ec50fcf7d433c99cb9da7b16b149384aaa543e3c21a3ada1a4e1
# The same for Ubuntu 26.04, the release the hosts are moving to; used by
# `image: ${MOLECULE_IMAGE_2604}` in extensions/molecule/image-smoke-2604.
MOLECULE_IMAGE_2604: >-
@@ -123,6 +131,8 @@ jobs:
EVENT_NAME: ${{ github.event_name }}
# The workflow only runs for pull requests to main; lint.yml uses the same constant.
BASE_REF: origin/main
# Empty outside a dispatch, which the run script reads as its default.
MOLECULE_LANES: ${{ inputs.lanes }}
run: |
# The selector comes from the base branch, so a pull request cannot edit the rules it is
# judged by (lint.yml does the same for check_bot_pr_diff.py); the first pull request that
@@ -154,8 +164,8 @@ jobs:
-v /var/run/docker.sock:/var/run/docker.sock -v "$docker_cli:/usr/local/bin/docker:ro" \
-v "$ac_root:$ac_root" -v "$ac_root/passwd:/etc/passwd:ro" -w "$PWD" \
-e "AC_ROOT=$ac_root" -e "HOME=$ac_root/home" -e "USER=$(id -un)" \
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID \
"$CI_IMAGE" scripts/run_molecule_in_ci_image.sh <<< "$selected"
-e MOLECULE_IMAGE -e MOLECULE_IMAGE_2604 -e KAMINO_RUN_ID -e MOLECULE_LANES \
"$CONTROLLER_IMAGE" scripts/run_molecule_in_ci_image.sh <<< "$selected"
# A cancelled run can leave its containers running when the docker client is killed.
- name: Remove this run's containers
+2 -1
View File
@@ -13,10 +13,11 @@ vault-pass*
gitleaks-report.json
# galaxy-importer output
importer_result.json
# APM: apm_modules/ is the dependency cache. Deployed skills and agents stay out
# APM: apm_modules/ is the dependency cache. Deployed skills, agents and commands stay out
# while their source is private; deployed hooks are committed for review.
apm_modules/
.claude/skills/
.claude/agents/
.claude/commands/
# Claude Code: personal settings and allowlists, never shared
.claude/settings.local.json
+21
View File
@@ -4,6 +4,27 @@ mortis.kamino Release Notes
.. contents:: Topics
v3.2.0
======
Minor Changes
-------------
- cloudflared - New input ``cloudflared_tunnel_lookup_delay``, the seconds between the three retries of a 404 from the tunnel lookup while a new tunnel may not be visible yet. The default is 5, as before.
- docker, system_baseline - The install tasks that only use the distribution's sources (docker's prerequisites, system_baseline's packages) refresh the APT cache only when it is older than an hour; before, every run refreshed it. Installs from a role's own APT source still refresh it on every run.
- system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages`` (lists, default empty), which append to the resolved package lists, where setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages`` replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades`` enables the matching task like a profile package. A package that one input installs and another purges stops the run before any change. With both inputs left at their default the role behaves as before.
- system_baseline - Add the input ``system_baseline_skip_upgrade_during_vzdump`` (default ``false``). With ``true`` on the ``pve`` system type, the main flow and the ``update`` entry point skip the apt upgrade while ``pvesh get /nodes/localhost/tasks --source active`` lists a ``vzdump`` task, and say so. With the default no ``pvesh`` command runs and the upgrade is unchanged.
- system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not restart ``systemd-journald``. The default stays ``200M``.
- system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty or a size journald reads, a number with an optional upper-case ``B``, ``K``, ``M``, ``G``, ``T``, ``P`` or ``E``. A value journald rejects, which the role used to write into the drop-in as it was and journald then ignored (``infinity``, a lower-case unit, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.
- traefik - New input ``traefik_release_url`` sets where the release archive and checksums are downloaded from, for a mirror (default: the GitHub releases, as before).
Bugfixes
--------
- docker - Read the distribution release through ``ansible_facts['distribution_release']`` for the APT source line, so the role works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. The source line is unchanged.
- gitea_runner - Read the timestamp of the forced re-registration backup through ``ansible_facts['date_time']``, so the role works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. The backup name is unchanged.
- system_baseline - Read the OS family through ``ansible_facts['os_family']`` in the reboot check, so the role (and its ``reboot`` entry point) works with ``inject_facts_as_vars`` set to false and in the ansible-core release that stops injecting facts as variables. Before, the task failed with ``'ansible_os_family' is undefined`` there.
v3.1.0
======
+3 -3
View File
@@ -2,10 +2,10 @@
An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
`cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`,
`pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and
`nfs_client`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and
`user_management`, plus the internal `_binary_update`. Roles still to come are listed under [Roadmap](#roadmap).
Status: roles arrive in waves. Release 3.1.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
Status: roles arrive in waves. Release 3.2.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `tailscale`, `traefik`, `ufw` and `user_management` roles (and the internal `_binary_update`, which `cloudflared`, `gitea`, `gitea_runner` and `traefik` call).
## Consuming
@@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
collections:
- name: https://git.rkdr.net/mortis/kamino.git
type: git
version: v3.1.0
version: v3.2.0
```
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
+12 -9
View File
@@ -113,13 +113,16 @@ reduction. A later decision that accepts a risk adds an entry here.
### Pin bumps first behaviour-tested after they merge
- **Risk:** Lint, Build and Molecule install a pull request's pins when they differ from the
image, so a pull request that changes an image input is tested on its own pins. But most pin
bumps select no Molecule scenario: every Python pin except an ansible-core minor bump, which
edits `meta/runtime.yml`. Such a bump is first behaviour-tested after it has merged, by the
pull request that moves the workflows to the new `ci` image.
- **Why accepted:** that pull request runs every scenario before the new image is used,
and running every scenario on every Python pin bump would cost about 10 minutes each.
- **Trigger:** the pull request that moves the workflows to a new `ci` image fails Molecule
because of a bumped pin.
- **Risk:** Lint, Build and Molecule install a pull request's pins when they differ from their
image, and a change to `requirements-molecule.*`, `requirements.yml` or
`extensions/molecule/requirements.yml` selects every Molecule scenario, so Molecule's own tools
and collections are tested before they merge. A change to the `molecule-controller` Dockerfile
(its base image, uv or Python) selects none, because `images/` is on the selector's IGNORED
list; it is first behaviour-tested after it has merged, by the pull request that moves
`molecule.yml` to the new `molecule-controller` version. `requirements-dev.*` pins only Lint's
and Build's tools, which no scenario runs.
- **Why accepted:** that pull request runs every scenario before the new image is used, and the
Dockerfile's self-checks fail the build on `main` before any pin moves.
- **Trigger:** the pull request that moves `molecule.yml` to a new `molecule-controller` image
fails Molecule because of a changed image input.
- **Planned reduction:** none for now.
+227 -28
View File
@@ -1,11 +1,13 @@
lockfile_version: '1'
generated_at: '2026-11-22T17:33:38.751913+00:00'
apm_version: 0.36.1
lockfile_version: '4'
generated_at: '2026-11-29T13:12:37.842657+00:00'
apm_version: 0.38.1
manifest_targets:
- claude
dependencies:
- repo_url: Mortis/Holocron
name: git
host: git.rkdr.net
resolved_commit: 67803f84f21bb4bae91144c46d39a0fae6754ef5
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 1.3.9
virtual_path: plugins/git
is_virtual: true
@@ -133,7 +135,11 @@ dependencies:
.claude/skills/pc-run/references/failure-patterns.md: sha256:c760a933a937d5c33206f918089a49afd8335de3854093f5c32494e71019378c
.claude/skills/pc-run/references/install.md: sha256:71ec08d58b8797b09574a827ea06d2c9656e3394d40534860fdaf333f5c19070
.claude/skills/pc-run/references/sources.md: sha256:ed47302b3fa003ca203cf6677905032f687ff5e07e3d551593865116d9ce11f1
content_hash: sha256:3fe59051e46ae66e09a62b121342e619720f3a669f9c25b2c1ed7bf7a537f646
content_hash: sha256:db45863914da8edc054526af825a3c2354584340f1e46d123b407053587cf05a
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: .apm/skills/git-branches/LICENSE
@@ -169,17 +175,75 @@ dependencies:
- repo_url: Mortis/Holocron
name: mattpocock
host: git.rkdr.net
resolved_commit: 67803f84f21bb4bae91144c46d39a0fae6754ef5
version: 0.4.0
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 0.5.0
virtual_path: plugins/mattpocock
is_virtual: true
package_type: apm_package
content_hash: sha256:91649428cf594bd911beb982282f92f7b732908db649d484e420c0ba1d6b6b7b
content_hash: sha256:dc4bda559aea7d4001b9491d781ffe073e00e339d6a4db70cd4922b365e588ef
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- repo_url: Mortis/Holocron
name: plan
host: git.rkdr.net
resolved_commit: 219a084c252f1dfe229f1bc55e1323b4cd197516
version: 0.4.0
virtual_path: plugins/plan
is_virtual: true
package_type: apm_package
deployed_files:
- .claude/agents/plan-gate.md
- .claude/agents/plan-recorder.md
- .claude/agents/plan-researcher.md
- .claude/agents/plan-validator.md
- .claude/commands/next.md
- .claude/commands/plan.md
- .claude/commands/ship.md
- .claude/skills/plan-track
- .claude/skills/plan-track/LICENSE
- .claude/skills/plan-track/SKILL.md
- .claude/skills/research-docs
- .claude/skills/research-docs/LICENSE
- .claude/skills/research-docs/SKILL.md
- .claude/skills/research-docs/references/file-format.md
- .claude/skills/research-docs/references/topics.md
deployed_file_hashes:
.claude/agents/plan-gate.md: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca
.claude/agents/plan-recorder.md: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0
.claude/agents/plan-researcher.md: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
.claude/agents/plan-validator.md: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
.claude/commands/next.md: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
.claude/commands/plan.md: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7
.claude/commands/ship.md: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8
.claude/skills/plan-track/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
.claude/skills/plan-track/SKILL.md: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047
.claude/skills/research-docs/LICENSE: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
.claude/skills/research-docs/SKILL.md: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539
.claude/skills/research-docs/references/file-format.md: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c
.claude/skills/research-docs/references/topics.md: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f
content_hash: sha256:7f7e9f5e4a2e6be218b9dc157f9f4a069457500c5ef78ff2ad137c8af7e98e8f
package_targets:
- claude
- codex
- copilot
declared_license: MIT
carried_licenses:
- path: .apm/skills/plan-track/LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- path: .apm/skills/research-docs/LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- path: LICENSE
source: LICENSE
hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- repo_url: mattpocock/skills
name: code-review
host: github.com
@@ -200,7 +264,7 @@ dependencies:
.claude/skills/code-review/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/code-review/SKILL.md: sha256:9c921a8d88138a41401d8897ca1bb852088ab1b7b605cdd04edc13e3e8aab6dd
.claude/skills/code-review/agents/openai.yaml: sha256:8229ca854e11dc8e6aef2131ee03f31fb1561cf905fab9ccc325180cf3331352
content_hash: sha256:cf233fee7275f8d00b5d2f11da948738531eee9ae7cc8d5b13f815f39fef1c9f
content_hash: sha256:e14d83d727f514a484858272f5a45d83d42ba7f84c078758a0341ffe6e8832e5
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -229,7 +293,7 @@ dependencies:
.claude/skills/codebase-design/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/codebase-design/SKILL.md: sha256:2c20617f87ec8af6a434859f381b2f061a69b530444e74eb39e78bb016a6d1e2
.claude/skills/codebase-design/agents/openai.yaml: sha256:edebc9e4fcfe102114012575eaa9600b9b5fd08c311664f389c36e7bc717740f
content_hash: sha256:667012327c54634ddc0fea22ccdf5d43c797b97038a6d4aadc09de29d50d0185
content_hash: sha256:0eece2d6148eede9eebea3989944ea6215b809204352ca82a3a83203b79b78b4
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -256,7 +320,7 @@ dependencies:
.claude/skills/diagnosing-bugs/SKILL.md: sha256:849198df88cdb65fd0d97236604c1fca7ff2f22d2f705f9724a800d0266b118d
.claude/skills/diagnosing-bugs/agents/openai.yaml: sha256:3e430dbe4334a87597488c060cb3dc3786bb00c9182877d6f5ec41f62490e90b
.claude/skills/diagnosing-bugs/scripts/hitl-loop.template.sh: sha256:35103539fc36873eea36074769ad454f9379d6fc8b2dc0e26ce987fd3bfe5503
content_hash: sha256:9b24ecaf15dd8d5594f973c590c6904d90dd3b50f8853fefd2341b7fd4a156bf
content_hash: sha256:eb364bd413d5b65ec3360466dfc8fe36a2f6c6de6a2c84a3b39bbf60fdbc120d
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -285,7 +349,7 @@ dependencies:
.claude/skills/domain-modeling/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/domain-modeling/SKILL.md: sha256:7b925d7b1e341a2eeae33ad68a8a8c0ab889a38ddd22a7598e4c240e5a7556a3
.claude/skills/domain-modeling/agents/openai.yaml: sha256:f6bf2aa996c6e6f53fdd0708e18a0d16a56aed8322cca59fedbe3c0d2c75f06b
content_hash: sha256:467f5e92529c2a4637440dce99841814b0864a8528714188ec91b78d900df540
content_hash: sha256:ab7acbca5aaf6e976caef1ccd1c14bac9459702f5b8e9d6d96e5a8ca8e3c7ee9
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -310,7 +374,7 @@ dependencies:
.claude/skills/grill-with-docs/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grill-with-docs/SKILL.md: sha256:7de372c13488f1ee96cc11cd8907b56b6809cc93eef776eeddd37de6b6cbe3fe
.claude/skills/grill-with-docs/agents/openai.yaml: sha256:94cd0ab161fb468a836349f5ed482ba58ce8e709a05c57ce533d739dbd35cca9
content_hash: sha256:9e8f732b806727978f1ad8d2fb9ce4467da68f7482d63c4bb5a73f2b1a0c797c
content_hash: sha256:8973c3d9463fc9dd708adc36a0f97b01aab4ae7d6a0217c2aa0f0a7ef206b83c
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -335,7 +399,7 @@ dependencies:
.claude/skills/implement/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/implement/SKILL.md: sha256:483bdc4ccf4ac31d86ac7beeaa0d0db80313e71e120bb8c59b3196ae5decd53d
.claude/skills/implement/agents/openai.yaml: sha256:8970a8596ade0c28ab427f41a4ea242d6bdf6186c59ebf55e1238dbecaab79dc
content_hash: sha256:c7c4d38c8dd9a05fcad046f79aeb275c7f31a87d7bceb4f3a133f125e6f4bfbb
content_hash: sha256:3465060b2e4776f9e791293720a66869f265c83f9a5323e3ab0115f0558cc65b
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -360,7 +424,7 @@ dependencies:
.claude/skills/implement-spec/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/implement-spec/SKILL.md: sha256:8d8300f7f12325dbfc99cad124a4bcc96ac0d02d0b2d73dfb348e9262afacfc4
.claude/skills/implement-spec/agents/openai.yaml: sha256:fd41efb42c60c96320d6531be7e4bf15cbf5518cd652d57dff27ccffa46988e9
content_hash: sha256:254a8c69719a6644fc462085569251b3fc8365770428738fc7bbb5398a3aa1fb
content_hash: sha256:e4d15f81cc620dc479ffe852de453e47090f79edde7dcfe912de64018b183256
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -387,7 +451,7 @@ dependencies:
.claude/skills/improve-codebase-architecture/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/improve-codebase-architecture/SKILL.md: sha256:35b03a3db61e0f5aa333ea59b54963e45a3d2ace6649b2ef4f9576603e2582a6
.claude/skills/improve-codebase-architecture/agents/openai.yaml: sha256:c8cb20f68ebf0edb4e497bc11ae5fcaa196004e661cd189015b04f4109ced7f1
content_hash: sha256:499043a54914592b8d40160e0ecae3787452869aed4fce50c3e574c1926329d8
content_hash: sha256:3c72a8a3852beda9b28b6a14ce665506ea57a59a76568cf826873ec17d798c5a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -416,7 +480,7 @@ dependencies:
.claude/skills/prototype/SKILL.md: sha256:714de632d116bb73f65cdb5a882db15b9369a6713b9a47c0fad827848f0bfbe3
.claude/skills/prototype/UI.md: sha256:723211e878acbc7b6ff09755263f3295cde724ba902ff0064da41eed51d45ad3
.claude/skills/prototype/agents/openai.yaml: sha256:5af65e43ab41a350436697b81e27b7f848d36782043b73c322bb2c9fa9cc55dc
content_hash: sha256:090ae76b97353255ca29be783d69bcc1029e0195bdf43118d0b6f7ea9acc89b0
content_hash: sha256:6890ef757ada4b0b571e74c28b69fda697ba2e18f564860f4c9373cbbe50535c
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -441,7 +505,7 @@ dependencies:
.claude/skills/research/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/research/SKILL.md: sha256:1f629e18ab899412683bc6a1c4efb4339999e27c2fdac328f26ee10a8c031d33
.claude/skills/research/agents/openai.yaml: sha256:9b4c470d63221c1f68f22df70b83e2f12401b317babe0d1b7b5f24a974474d0d
content_hash: sha256:34a7c3808288b05ea422affe978ee4d301239817d822f4f50687f1957c17cf9a
content_hash: sha256:4a52e8e17a984526a0f3f25bc138097b4ca8b5f15e35b7c318fa024c6b04e0fd
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -466,7 +530,7 @@ dependencies:
.claude/skills/retro/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/retro/SKILL.md: sha256:33fbc28568e3146f20fd908b12998bc0ab30aa4f4c87288199a40793efa94696
.claude/skills/retro/agents/openai.yaml: sha256:cb6fb9d7e6b4be5975f41f6def1dd00a1255bad5d9b02696b124c924a8b8745c
content_hash: sha256:e13af4f6dfecd777815adde57811398dc59d0118692a70d996968b59e3d13db8
content_hash: sha256:4d42bb16dc68325fe941153ff3341f8be8f770121479bc41921d477d27a45ad5
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -501,7 +565,7 @@ dependencies:
.claude/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md: sha256:947602d33a80f98f939fb990995b8f95a3459b114b919c4221d08bd75d7cffe0
.claude/skills/setup-matt-pocock-skills/issue-tracker-local.md: sha256:7dcda20a2eb4bdc89b95d1143423c0691309921cadae3132e6424f371030506e
.claude/skills/setup-matt-pocock-skills/triage-labels.md: sha256:ae512af838c78b8750471c42cd2b20fa32319553e61d84c9a23d171b40ce14aa
content_hash: sha256:f8f92182cd38f90a66bc50b9408da5de83cbda1e4abaffbb8a7428beabcf6f5d
content_hash: sha256:fb96a61c2698a9f4299778861547b92f11719d033d1cd5dea7e95a98fe8e438a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -530,7 +594,7 @@ dependencies:
.claude/skills/tdd/agents/openai.yaml: sha256:ea6f01cf1b8c06a4b0f5b649d74b1b8ce8685e72af1b38d70d877693e092af0b
.claude/skills/tdd/mocking.md: sha256:3ceb807fdf4a47d6a93d4d9a891e5ba6d362a6247bd08adc451feebfc17361ef
.claude/skills/tdd/tests.md: sha256:859f9e592c188fda4fc7277dd180e4ce9c7a2e13f6efe1f6f29eccc9d28c106a
content_hash: sha256:ef3cbb31aa8b1f8a3f9b6a042c230dc9312019e84cdc6337f60890f177fd5764
content_hash: sha256:cb510a538834fd446bae7cff1e6e46c4b625524d162bfc56c6d64486115a48e3
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -555,7 +619,7 @@ dependencies:
.claude/skills/to-spec/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/to-spec/SKILL.md: sha256:43ad9cf318e5e7d3d1fa360253a37021796dc87a0c2e595ad262661a10f85088
.claude/skills/to-spec/agents/openai.yaml: sha256:1c5b4d1e3d8e52287ef19cc2742fdbbfae1914ac75d33af3e4c8174f08cc55bb
content_hash: sha256:cc5d718c2f810f4c9b081ea888af3ad3eb73bb8db6fc9fa92c3b1729637b7d56
content_hash: sha256:7c0ac5892441627cbe76e8587d47cbe3adedc61f779df5c9f82d473588503330
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -580,7 +644,7 @@ dependencies:
.claude/skills/to-tickets/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/to-tickets/SKILL.md: sha256:56ec23c5b2782785d4e65bff9e315b6d3aeb4ef977c174a219e99489fada1995
.claude/skills/to-tickets/agents/openai.yaml: sha256:21bc6215fffcd7614e9f772bb1760e87cc5fc7dcc707e7d282bc9414267a6090
content_hash: sha256:7cca8cd2afe55d1cd8bfc986df6a4cb4ad54411452575200804494b03c871ede
content_hash: sha256:7e0aa33c2d0ccd99d92a7b45405243f7a948425e161723d4535f178ee0af3d59
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -609,7 +673,7 @@ dependencies:
.claude/skills/triage/OUT-OF-SCOPE.md: sha256:1fbf9b432130c6380aa65813b55553cfda150309b27c595e183f8e335b8a190d
.claude/skills/triage/SKILL.md: sha256:917b0baf74be583e74f110857ed45df2766617f75c00baf61fd136d7af515edf
.claude/skills/triage/agents/openai.yaml: sha256:2e683717720cf456d165d0bb1a68bb600d0b6a8ccb61841c172e50d26f95351c
content_hash: sha256:bf09f37fa24ab64324497772a25a1e0a9b22d06ccb238fefd0cfb12eee473c3d
content_hash: sha256:cc3930f2f501738b67c5d3397518d537ffaf252c679bded57b090f2d31de0a22
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -634,7 +698,7 @@ dependencies:
.claude/skills/wayfinder/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/wayfinder/SKILL.md: sha256:0c9fa96791aebf3b7d654cf35c6aadde97d81f57c17b07d13b27c14d9c46561f
.claude/skills/wayfinder/agents/openai.yaml: sha256:88bc81a11a6d52ac67aeaa76b8b619e387020d47c5133a4dd4927fd15c4ad073
content_hash: sha256:eec9b3ec0cd815b708670bf163384d257c7d1350ccb823f66043cbe138794298
content_hash: sha256:92acbe1ee44d0ecd91e8ff08d09d8d78dabf8f2d5fa56ef3d977db1cb2a5457a
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -659,7 +723,7 @@ dependencies:
.claude/skills/grill-me/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grill-me/SKILL.md: sha256:caaf8b8de1684f96e26b28f3c29189db5c89cce4b73e1c93d86164f66ef88637
.claude/skills/grill-me/agents/openai.yaml: sha256:c061e39c3e0f9d865fb1b97556d485704af2a8a58f4b8221a8917a5c2074a32b
content_hash: sha256:fe33aaa8e8dcd606107b1bfe3109f257b4a7e0f4907afd6506b62ccfb73cd1d3
content_hash: sha256:eb2880386e9259f4ca51167f518c81cea969850d8f45bd8f79f579dcbbad902e
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -684,7 +748,7 @@ dependencies:
.claude/skills/grilling/LICENSE: sha256:0e7ac423bf2c6e223b7c5b156f8cf72da49d748e56a1641402c31f22ad07dbb5
.claude/skills/grilling/SKILL.md: sha256:a146842ed93ca43d833550fa9adf02e58cb63c83fea9d4b4522995b82242d4e2
.claude/skills/grilling/agents/openai.yaml: sha256:1411d7df7d99b7e621a1ff8283c8133cc2464be63d064e52d8ce169c6800ee9b
content_hash: sha256:823f08ad33368a9626991e6782f7ae14b958e39ef8503f6bdb3b98a58d237a58
content_hash: sha256:e0e4918ef2675bf3bc0e48fa83c40446cd961c107afdf435cbc2daa774cb0efe
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -711,7 +775,7 @@ dependencies:
.claude/skills/writing-for-agents/SKILL-MECHANICS.md: sha256:c768e6307c7c10728c401c213f2c4ba71c542127eeb7ad2956aabd15a0fa0059
.claude/skills/writing-for-agents/SKILL.md: sha256:551adca942227b44192edba88acd4e8db911f0121ce58ad16944ccf6a896a74a
.claude/skills/writing-for-agents/agents/openai.yaml: sha256:eacb24b2a618cfb81dacb0416f4fdd75ddf3a8060f8ddb99aae1b1e301907e4b
content_hash: sha256:8365ebe1d0c343d3d46970526f30fcf7c5e0c5e49fd39a3c882977024626ff3c
content_hash: sha256:dfc57c19e0f7a7e9c371966d765700d74ecae7694377c095095ee94f6fd216b3
carried_licenses:
- path: LICENSE
source: LICENSE
@@ -726,6 +790,69 @@ deployments:
- git.rkdr.net/Mortis/Holocron/plugins/git
active_owner: git.rkdr.net/Mortis/Holocron/plugins/git
content_hash: sha256:c9122bac28dc079efb041acc720dd097c62fdb49d9b1d9a62b15ac5ee6c47032
- kind: project-relative
target: claude
value: .claude/agents/plan-gate.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:c1c89bae5dd59de122603c2caf1907e8eaf38244cf007dd1942df8cea616a8ca
- kind: project-relative
target: claude
value: .claude/agents/plan-recorder.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:a5283798a574900d4b78dbbbcdf78b9ae0997e8496f5971f0085cfad87c1fea0
- kind: project-relative
target: claude
value: .claude/agents/plan-researcher.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:eda0457d2007cf0c6cb4745383a0369d03a26ed252d7251a1f5250003a89ef85
- kind: project-relative
target: claude
value: .claude/agents/plan-validator.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:a56e7a710fd9e7a9dd9e2601f1f2701b98fd229f3e014bba4bda4dfe5977ecae
- kind: project-relative
target: claude
value: .claude/commands/next.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:8e16330ec0f16dbbc86d44fca94699e33e393c9a8af76f45d3f3bd2b9c8bfa1f
- kind: project-relative
target: claude
value: .claude/commands/plan.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:2538b3dbb3860ebe93a39cad95cd5a1adcbeded19f404a84201b3e8aa7ce91c7
- kind: project-relative
target: claude
value: .claude/commands/ship.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:f108f73e60a884f46285955027fba47d6309fed6a89812948f577e27be180af8
- kind: project-relative
target: claude
value: .claude/skills/code-review
@@ -1716,6 +1843,33 @@ deployments:
- git.rkdr.net/Mortis/Holocron/plugins/git
active_owner: git.rkdr.net/Mortis/Holocron/plugins/git
content_hash: sha256:ed47302b3fa003ca203cf6677905032f687ff5e07e3d551593865116d9ce11f1
- kind: project-relative
target: claude
value: .claude/skills/plan-track
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/plan-track/LICENSE
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- kind: project-relative
target: claude
value: .claude/skills/plan-track/SKILL.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:fee5062c8c63b49f66368b290c8ebd8cfff744137670d0c037da1a49c455c047
- kind: project-relative
target: claude
value: .claude/skills/prototype
@@ -1779,6 +1933,51 @@ deployments:
- mattpocock/skills/skills/engineering/research
active_owner: mattpocock/skills/skills/engineering/research
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/research-docs
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: null
- kind: project-relative
target: claude
value: .claude/skills/research-docs/LICENSE
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:9d3692e6b35e0e43b81e096352f11c6b884e7004d78d3dcd92768232c6704525
- kind: project-relative
target: claude
value: .claude/skills/research-docs/SKILL.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:93023786f71dac5a77e60eca0be09e6510dfd45509f5e8cbc755395fe8774539
- kind: project-relative
target: claude
value: .claude/skills/research-docs/references/file-format.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:29d5583beaa531d26895c54def112039730490c312401648a6bdb7dd5278fb3c
- kind: project-relative
target: claude
value: .claude/skills/research-docs/references/topics.md
runtime: null
scope: project
owners:
- git.rkdr.net/Mortis/Holocron/plugins/plan
active_owner: git.rkdr.net/Mortis/Holocron/plugins/plan
content_hash: sha256:757abb7b6be44c3d3c0dd1f4818a344e08877810d36bf8be60ea7189cba8d12f
- kind: project-relative
target: claude
value: .claude/skills/research/LICENSE
+4 -2
View File
@@ -3,8 +3,8 @@ version: 0.1.0
description: Ansible Collection mortis.kamino. Consumer-side apm manifest for holocron skills.
license: GPL-3.0-or-later
# git and mattpocock only (#104): bin and core are unused here, and gitea returns once it is
# rebuilt on the tea CLI.
# git, mattpocock and plan only (#104): bin and core are unused here, and gitea returns once it
# is rebuilt on the tea CLI.
# Hook primitives come from apm; no instruction primitive is deployed until the root AGENTS.md
# has a managed section. `apm approve` writes the executables.allow entry into this file, and it
@@ -17,4 +17,6 @@ dependencies:
path: plugins/git
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/mattpocock
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/plan
mcp: []
+1 -1
View File
@@ -85,4 +85,4 @@ plugins:
strategy: {}
test: {}
vars: {}
version: 3.1.0
version: 3.2.0
+58
View File
@@ -474,3 +474,61 @@ releases:
- 134-check-mode.yml
- tailscale-role.yml
release_date: '2026-11-26'
3.2.0:
changes:
bugfixes:
- docker - Read the distribution release through ``ansible_facts['distribution_release']``
for the APT source line, so the role works with ``inject_facts_as_vars`` set
to false and in the ansible-core release that stops injecting facts as variables.
The source line is unchanged.
- gitea_runner - Read the timestamp of the forced re-registration backup through
``ansible_facts['date_time']``, so the role works with ``inject_facts_as_vars``
set to false and in the ansible-core release that stops injecting facts as
variables. The backup name is unchanged.
- system_baseline - Read the OS family through ``ansible_facts['os_family']``
in the reboot check, so the role (and its ``reboot`` entry point) works with
``inject_facts_as_vars`` set to false and in the ansible-core release that
stops injecting facts as variables. Before, the task failed with ``'ansible_os_family'
is undefined`` there.
minor_changes:
- cloudflared - New input ``cloudflared_tunnel_lookup_delay``, the seconds between
the three retries of a 404 from the tunnel lookup while a new tunnel may not
be visible yet. The default is 5, as before.
- docker, system_baseline - The install tasks that only use the distribution's
sources (docker's prerequisites, system_baseline's packages) refresh the APT
cache only when it is older than an hour; before, every run refreshed it.
Installs from a role's own APT source still refresh it on every run.
- system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages``
(lists, default empty), which append to the resolved package lists, where
setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages``
replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades``
enables the matching task like a profile package. A package that one input
installs and another purges stops the run before any change. With both inputs
left at their default the role behaves as before.
- system_baseline - Add the input ``system_baseline_skip_upgrade_during_vzdump``
(default ``false``). With ``true`` on the ``pve`` system type, the main flow
and the ``update`` entry point skip the apt upgrade while ``pvesh get /nodes/localhost/tasks
--source active`` lists a ``vzdump`` task, and say so. With the default no
``pvesh`` command runs and the upgrade is unchanged.
- 'system_baseline - ``system_baseline_journal_max_use`` can be empty to leave
journald alone: the role then writes no drop-in and does not restart ``systemd-journald``.
The default stays ``200M``.'
- 'system_baseline - ``system_baseline_journal_max_use`` is checked before any
change: it must be empty or a size journald reads, a number with an optional
upper-case ``B``, ``K``, ``M``, ``G``, ``T``, ``P`` or ``E``. A value journald
rejects, which the role used to write into the drop-in as it was and journald
then ignored (``infinity``, a lower-case unit, a line break), now stops the
run; an empty value used to write an empty ``SystemMaxUse=``.'
- 'traefik - New input ``traefik_release_url`` sets where the release archive
and checksums are downloaded from, for a mirror (default: the GitHub releases,
as before).'
fragments:
- 364-ansible-facts.yml
- 399-extra-packages.yml
- 400-skip-upgrade-during-vzdump.yml
- 401-journal-max-use-empty.yml
- apt-cache-valid-time.yml
- cloudflared-tunnel-lookup-delay.yml
- refusals-in-verify.yml
- traefik-release-url.yml
release_date: '2026-11-27'
@@ -1,8 +0,0 @@
---
minor_changes:
- >-
system_baseline - Add ``system_baseline_extra_packages`` and ``system_baseline_extra_remove_packages`` (lists, default empty), which
append to the resolved package lists, where setting ``system_baseline_essential_packages`` or ``system_baseline_remove_packages``
replaces the profile's whole list. An extra ``tmux`` or ``unattended-upgrades`` enables the matching task like a profile package.
A package that one input installs and another purges stops the run before any change. With both inputs left at their default the
role behaves as before.
@@ -1,9 +0,0 @@
---
minor_changes:
- >-
system_baseline - ``system_baseline_journal_max_use`` can be empty to leave journald alone: the role then writes no drop-in and does not
restart ``systemd-journald``. The default stays ``200M``.
- >-
system_baseline - ``system_baseline_journal_max_use`` is checked before any change: it must be empty, ``infinity`` or a number followed by
``K``, ``M``, ``G`` or ``T``. A value in any other form, which the role used to write into the drop-in as it was (a bare number, ``1.5G``,
a typo, a line break), now stops the run; an empty value used to write an empty ``SystemMaxUse=``.
+8
View File
@@ -0,0 +1,8 @@
---
minor_changes:
- >-
nfs_client - New role. Installs ``nfs-common`` and manages NFS mount entries in ``/etc/fstab`` from ``nfs_client_mounts``
(``src``, ``path``, optional ``opts`` and ``state`` ``present`` or ``absent``), with ``nfs_client_default_opts``
(default ``_netdev,nofail``) for an entry that sets none. It creates each mount point without owner, group or mode,
writes only the fstab line, never mounts or unmounts, and reloads systemd after a change. An ``absent`` entry loses its
line and nothing else. Declares Ubuntu noble and resolute; the molecule scenario never mounts a share.
@@ -0,0 +1,6 @@
---
minor_changes:
- >-
docker - New input ``docker_keyring_checksum``: the Docker APT key is verified against a pinned
sha256, and a changed key fails the install until a person has checked it and updated the hash.
Set ``docker_keyring_checksum`` too when ``docker_gpg_url`` is overridden.
@@ -0,0 +1,4 @@
---
trivial:
- >-
system_baseline - Purge the unwanted packages that are installed in one apt call instead of one call per package.
@@ -0,0 +1,6 @@
---
minor_changes:
- >-
traefik - The prerequisites install refreshes the APT cache only when it is older than an hour;
before, every run refreshed it. A consumer who adds an APT source just before the role must
refresh the cache first.
@@ -0,0 +1,9 @@
---
bugfixes:
- >-
ufw - ``--check`` no longer fails on a host where ufw is not installed yet; the preview reports
the install and skips the tasks that need the ``ufw`` binary.
- >-
fail2ban - ``--check`` no longer fails on a host where fail2ban is not installed yet, through
either entry point; the preview reports the install and skips the configuration, service and
jail tasks.
@@ -0,0 +1,5 @@
---
trivial:
- >-
system_baseline - The registered results of the unattended-upgrades check and the reboot-required
check carry the internal ``__system_baseline_`` prefix.
@@ -12,6 +12,8 @@ and pin updates. The choice is hard to undo once every workflow pins an image.
- **We build our own images:** a `ci` image, and one Dockerfile per molecule image (one per Ubuntu
release, and later the Debian 13 one).
[ADR 0003](0003-molecule-controller-image.md) adds a `molecule-controller` image to this set,
which Molecule pins instead of `ci`.
- **The molecule images bake in everything except what a role installs itself.** The test
fixtures a scenario's `prepare.yml` needs are baked in. Packages a role installs are still
downloaded, because that install path is what the test exercises. A converge is not kept off
@@ -0,0 +1,60 @@
# 0003. Molecule runs in its own controller image, not the `ci` image
Status: accepted
## Context
[ADR 0002](0002-self-built-ci-and-molecule-images.md) built one `ci` image that bakes every CI
tool, and Lint, Build and Molecule all pin it. A change to a tool only Lint uses (apm-cli,
antsibull-changelog, a pre-commit hook environment) publishes a new `ci` version, and its pin
pull request moves `CI_IMAGE` in `molecule.yml`. The scenario selector cannot tell what changed
inside an image, so it runs every scenario. 9 of 18 `ci` pin pull requests over two weeks
were Lint-only. Images are built only on push to `main`, so a bump and its pin never share a pull
request.
## Decision
- **Molecule runs in a `molecule-controller` image**, separate from `ci`. It bakes only what
Molecule needs: ansible-core, molecule, molecule-plugins, the Python packages of the Docker
connection, and the collections of `requirements.yml` and
`extensions/molecule/requirements.yml`.
- **Its Python packages come from a requirements file and hash-pinned lock of its own.**
- **`molecule.yml` pins it instead of `ci`**; Lint and Build keep `ci`.
- **It follows ADR 0002 otherwise:** built by `image.yml`, versioned by CI, pinned by
`<version>@sha256:<digest>`, moved by Renovate. This adds to ADR 0002's set of images; the
rest of ADR 0002 stands.
## Reason
A `ci` pin pull request then touches only paths the selector ignores and runs no scenario. A
`molecule-controller` pin pull request still runs every scenario, which is right: it changes
Molecule's tools.
The cost: one more image and lock to maintain, its layers to estimate against the 100 MB limit,
a hand-made first pin, and ansible-core pinned in two locks that must stay equal. A collection
bump is an input of both images, so it publishes two versions and two pin pull requests.
The controller's requirements file and lock must not be on the selector's IGNORED list, so a
bump of ansible-core or molecule there runs every scenario before it merges. Today
`requirements-dev.txt` and `requirements-dev.lock` are on IGNORED, so such a bump selects no
scenario unless it edits `meta/runtime.yml`; this decision does not change that list.
The implementation updates: `image.yml` (matrix, and its push `paths` unless the new files live
under `images/`), `molecule.yml`,
`scripts/run_molecule_in_ci_image.sh` (its pin comparison reads the `ci` image's checksums),
`scripts/check_image_versions.py`, `scripts/check_bot_pr_diff.py` and
`scripts/lock-requirements.sh` (they know only `requirements-dev.lock`), their tests, the
`pip-compile` patterns in `renovate.json`, `images/AGENTS.md` (the consumer list, and "each
molecule image is one Ubuntu release"), the Molecule rules in `.gitea/workflows/AGENTS.md`,
`docs/images/` (a new page, and `ci.md`, which names Molecule as a consumer), the `ci`
Dockerfile's description label, `docs/contributing/setup.md` if the clone's tools change, and the
[Accepted risks](../../SECURITY.md#accepted-risks) entry "Pin bumps first behaviour-tested after
they merge", which counts on the `ci` pin pull request running every scenario.
## Not done
- **The selector classifies the packages a lock change moves, to decide whether a `CI_IMAGE`
bump matters:** a heuristic package list inside a script that judges pull requests.
- **Status quo:** every Lint-only tool change keeps costing a full Molecule run.
- **Grouping pin pull requests only:** adopted separately; it lowers the number of full runs
but not the cause.
+4
View File
@@ -11,6 +11,10 @@ the author sees the change before it merges; aspirational means nothing checks i
- **Status is `accepted` or `superseded by NNNN`, nothing else.** A proposal lives in an issue or
a pull request and is never committed as "proposed". *Why:* a committed ADR is either in force
or replaced; a draft in the tree reads as a decision. *Held:* review.
- **When a later ADR changes part of an earlier one, the earlier one stays `accepted` and as
decided, except for one sentence beside that part naming the later ADR and what it changes;**
the later ADR names the earlier one in its Context. *Why:* neither status fits a partial change,
and a reader of the earlier ADR learns which part no longer holds and where it went. *Held:* review.
- **An ADR is accepted on the maintainer's approval of its pull request, which sets status
`accepted`.** *Why:* an ADR binds every contributor, so the maintainer decides it. *Held:*
control: the `CODEOWNERS` entry for `docs/adr/`, which requires the maintainer's code-owner
+14 -1
View File
@@ -15,10 +15,23 @@ trailers, are in [ai-assistance.md](ai-assistance.md).
*Reason:* every change reaches `main` through the Lint and Build checks and a reviewer.
*Held by:* control: branch protection on `main`.
- **Do not push to someone else's branch or to a bot's branch; put your change in a pull request of
your own.** Updating a branch from `main` with Gitea's update button is allowed.
your own.** Updating a branch from `main` with Gitea's update button is allowed under the next
two rules.
*Reason:* a push changes a head its author already reviewed or scheduled to merge, and a hand-made
commit on a `renovate/` branch makes Renovate stop rebasing it.
*Held by:* aspirational.
- **Update a pull request's branch from `main` only when it is next to merge: reviewed, green on its
previous head, and the only branch being updated. After updating your own pull request, give it a
scheduled merge; merge anyone else's as [reviewing.md](reviewing.md) says.**
*Reason:* `main` blocks an outdated branch, so every update re-runs Lint, Build and Molecule, and
a new head cancels the run in progress; an update made while another pull request merges first is
wasted.
*Held by:* aspirational.
- **Never press the update button on a `renovate/` branch. When a Renovate pull request is next to
merge and behind `main`, tick the rebase/retry checkbox in its description; Renovate rebases it at
its next run.**
*Reason:* the update button adds a hand-made commit, and Renovate stops rebasing that branch.
*Held by:* aspirational.
- **File an issue or open a pull request with the headings of the matching template in `.gitea/`,
also when you file through the API, `tea` or an MCP server.**
*Reason:* those routes skip the templates, and an agent's built-in body leaves out what review needs.
+7 -10
View File
@@ -1,7 +1,9 @@
# ci
The **CI tooling image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection: everything the Lint, Build and
Molecule workflows used to install on each run is baked in, so a job only checks out the code and runs.
The **CI tooling image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection: everything the Lint and Build
workflows used to install on each run is baked in, so a job only checks out the code and runs. The Molecule workflow
runs in the [`molecule-controller`](molecule-controller.md) image instead
([ADR 0003](../adr/0003-molecule-controller-image.md)), so a tool bump only Lint uses selects no Molecule scenario.
## What is in it
@@ -59,25 +61,20 @@ jobs:
pre-commit run --all-files --show-diff-on-failure
```
The Molecule job runs on the `kamino-molecule` runner, a host executor, so it starts the image itself with
`docker run`, as the runner user, with the Docker socket and the checkout mounted at the same path (molecule
hands the daemon paths in the checkout); `scripts/run_molecule_in_ci_image.sh` does the same pin check inside it.
Read `.gitea/workflows/molecule.yml` for the full command.
`/opt/ci-pins.sha256` lists the five pin files by their checkout-relative path, so `sha256sum -c` runs in the checkout root. When
the checkout's `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `extensions/molecule/requirements.yml` and `.pre-commit-config.yaml` match, the baked tools and
collections are used as they are, and Lint and Build cut the network by environment (proxy variables and
`PIP_NO_INDEX`) for all but the script tests, so a tool that downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
tools and collections itself for that run
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml`, `molecule.yml` and `gitea-release-key.yml`
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml` and `gitea-release-key.yml`
are the real consumers.
## Tags and pinning
- `<version>` is semver, independent of the Collection's version. A published version is never moved or
rebuilt, so one digest belongs to exactly one version. `latest` is the newest version, for looking only.
- Pin `ci:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers: `lint.yml`, `build.yml`,
`molecule.yml` and `gitea-release-key.yml`.
- Pin `ci:<version>@sha256:<digest>`; the digest decides what is pulled. Consumers: `lint.yml`, `build.yml` and
`gitea-release-key.yml`.
- Renovate is configured to move the pins to a new version after the image is built on `main` (the rule is in
`renovate.json`; the first pin of a brand-new image is made by hand).
+61
View File
@@ -0,0 +1,61 @@
# molecule-controller
The **Molecule controller image** of the [`mortis.kamino`](https://git.rkdr.net/mortis/kamino) Collection:
the tools and collections Molecule runs with, and nothing Lint uses, so a tool bump that only Lint needs leaves
this image alone ([ADR 0003](../adr/0003-molecule-controller-image.md)). It is the controller: the scenarios'
target containers come from the `molecule-ubuntu*` images.
## What is in it
Ubuntu 26.04 with:
- **Python tools** in `/opt/venv` (on `PATH`; it runs on Python 3.14, the version of `.python-version`, from a
baked copy and not from the distribution's `python3`), from `requirements-molecule.lock` (the hashed lock of
`requirements-molecule.txt`, installed with `pip install --require-hashes`): `ansible-core`, `molecule` and
`molecule-plugins[docker]` (the Docker driver, with the `docker` Python SDK). Its `ansible-core` is the one of
`requirements-dev.lock`: `check_image_versions.py pins` fails when the two locks differ.
- **The collections the scenarios call** in `/opt/collections` (`ANSIBLE_COLLECTIONS_PATH` is set to it): those of
`requirements.yml` (`community.general`, `ansible.posix`, `community.proxmox`), which the roles call, and of
`extensions/molecule/requirements.yml` (`community.docker`), which the Docker driver's own playbooks call.
- `python3`, `python3-venv` and `ca-certificates` from the distribution. The image runs as root and sets no
working directory.
- `/opt/molecule-pins.sha256`: the checksums of the four pin files this image was built from.
It has no Docker CLI and no `git`: mount the host's Docker CLI and socket, and the checkout.
## How to use it
On the `kamino-molecule` runner, a host executor, start it with `docker run` as the runner user, with the Docker
socket, the host's Docker CLI and the checkout mounted at the same path (molecule hands the daemon paths in the
checkout). In the checkout root, run `sha256sum --quiet -c /opt/molecule-pins.sha256`: when it passes, use
`/opt/venv/bin` and `/opt/collections` as they are; when a pull request changed `requirements-molecule.txt`,
`requirements-molecule.lock`, `requirements.yml` or `extensions/molecule/requirements.yml`, install the pinned tools
and collections for that run first (slower, same result), until the image is rebuilt from `main`.
`.gitea/workflows/molecule.yml` is its consumer: it pins the image as `CONTROLLER_IMAGE`, and
`scripts/run_molecule_in_ci_image.sh` runs the pin check inside it. Read the workflow for the full command.
## Tags and pinning
- `<version>` is semver, independent of the Collection's version. A published version is never moved or
rebuilt, so one digest belongs to exactly one version. `latest` is the newest version, for looking only.
- Pin `molecule-controller:<version>@sha256:<digest>`; the digest decides what is pulled.
## How it is built and kept up to date
`.gitea/workflows/image.yml` builds it with kaniko (repository root as build context, because the pin files are
copied in) on pushes to `main` that touch its inputs, never on a pull request, and publishes the next patch of the
matrix's `base:` when its inputs differ from those of its newest published version. Its last build step checks
itself: the tools run on the pinned Python at the locked versions, the Docker driver loads, every pinned collection
is installed and the pin record verifies. It has no image-smoke scenario: the full Molecule run of its pin pull
request proves it. The build prints the compressed size of each layer directory, and each pushed layer stays below
100 MB (Cloudflare's request limit).
## Image metadata
The `org.opencontainers.image.*` labels (title, description, version, revision, created, source,
documentation, licenses, authors) and `net.rkdr.mortis.*` labels (what it is for, what it contains,
how to use it; the base image is `base.name`) are listed on the package page of the registry; `version`,
`revision` and `created` are set by the build.
Source: [https://git.rkdr.net/mortis/kamino](https://git.rkdr.net/mortis/kamino), `images/molecule-controller/Dockerfile`. Licence: GPL-3.0-or-later.
+5 -4
View File
@@ -11,9 +11,10 @@ It is the release the hosts run today.
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
`ca-certificates`.
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
- The packages the roles manage, preinstalled so a converge makes no network calls:
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
(the docker scenario signs its stand-in APT repository with it).
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
`gnupg` (the docker scenario signs its stand-in APT repository with it).
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
image is a test target that must never be exposed to a network.
@@ -48,7 +49,7 @@ platforms:
systemd needs a writable cgroup (`cgroupns_mode: host`, the `/sys/fs/cgroup` mount and tmpfs on `/run`), the
firewall tools need `NET_ADMIN`, AppArmor is left unconfined for the container (`apparmor=unconfined`), and
nothing runs privileged. The docker driver needs molecule's docker plugin, which the ci image provides.
nothing runs privileged. The docker driver needs molecule's docker plugin, which the molecule-controller image provides.
The scenario `extensions/molecule/image-smoke` tests this image against that contract (release,
systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`).
+5 -4
View File
@@ -11,9 +11,10 @@ It is the release the hosts are moving to; every role scenario whose role declar
- systemd as the init system (`systemd`, `systemd-sysv`), D-Bus, `sudo`, `iproute2`,
`ca-certificates`.
- Python for Ansible on the target: `python3`, `python3-apt`, `python3-systemd`.
- The packages the roles manage, preinstalled so a converge makes no network calls:
`iptables`, `ufw`, `fail2ban`, `openssh-server` (the `ssh` unit is enabled), and `gnupg`
(the docker scenario signs its stand-in APT repository with it).
- Test fixtures no role installs: `iptables`, `openssh-server` (the `ssh` unit is enabled), and
`gnupg` (the docker scenario signs its stand-in APT repository with it).
- No package a role installs, such as `ufw` or `fail2ban`: the role's scenario exercises that
install. The APT lists are removed, so such a scenario refreshes the APT cache in its prepare.
- root's `sudo` skips the PAM account check (`pam_rootok`), so `become` works in the container.
- Throwaway SSH host keys and a machine-id generated at build time. They are not secrets and the
image is a test target that must never be exposed to a network.
@@ -49,7 +50,7 @@ platforms:
systemd needs a writable cgroup (`cgroupns_mode: host`, the `/sys/fs/cgroup` mount and tmpfs on `/run`), the
firewall tools need `NET_ADMIN`, AppArmor is left unconfined for the container (`apparmor=unconfined`), and
nothing runs privileged. The docker driver needs molecule's docker plugin, which the ci image provides.
nothing runs privileged. The docker driver needs molecule's docker plugin, which the molecule-controller image provides.
The scenario `extensions/molecule/image-smoke-2604` tests this image against that contract (release,
systemd, packages, the `dbus` and `ssh` units, the Python bindings, `NET_ADMIN`).
@@ -15,7 +15,7 @@
ansible.builtin.package_facts:
manager: auto
- name: The packages the roles manage are preinstalled
- name: The fixtures the scenarios need are preinstalled
ansible.builtin.assert:
that: item in ansible_facts['packages']
quiet: true
@@ -30,8 +30,6 @@
- python3-apt
- python3-systemd
- iptables
- ufw
- fail2ban
- openssh-server
- gnupg
+1 -3
View File
@@ -15,7 +15,7 @@
ansible.builtin.package_facts:
manager: auto
- name: The packages the roles manage are preinstalled
- name: The fixtures the scenarios need are preinstalled
ansible.builtin.assert:
that: item in ansible_facts['packages']
quiet: true
@@ -30,8 +30,6 @@
- python3-apt
- python3-systemd
- iptables
- ufw
- fail2ban
- openssh-server
- gnupg
+1 -1
View File
@@ -7,4 +7,4 @@
# Renovate (renovate.json, ansible-galaxy manager) bumps this pin.
collections:
- name: community.docker
version: 5.4.0
version: 5.4.1
+6 -3
View File
@@ -1,13 +1,13 @@
---
namespace: mortis
name: kamino
version: 3.1.0
version: 3.2.0
readme: README.md
authors:
- Defame1297
description: >-
Reusable, hardened Ansible roles for a self-hosted home lab (cloudflared, docker, fail2ban,
gitea, gitea_runner, network_interfaces, pihole, pve_lxc, sshd, system_baseline,
gitea, gitea_runner, network_interfaces, nfs_client, pihole, pve_lxc, sshd, system_baseline,
systemd_hardening, tailscale, traefik, ufw, user_management; _binary_update is internal).
license:
- GPL-3.0-or-later
@@ -22,7 +22,7 @@ homepage: https://git.rkdr.net/mortis/kamino
issues: https://git.rkdr.net/mortis/kamino/issues
# CI tests the versions pinned in requirements.yml; the lower bounds here are not tested.
# No upper bound, so a consumer's newer pin does not conflict. community.general is used by system_baseline and ufw,
# ansible.posix by system_baseline and user_management, community.proxmox by pve_lxc (Proxmox VE guest lifecycle).
# ansible.posix by nfs_client, system_baseline and user_management, community.proxmox by pve_lxc (Proxmox VE guest lifecycle).
# community.proxmox's modules import the Python library proxmoxer (2.3 or later) on the controller; galaxy.yml
# cannot declare a Python dependency, so the README says it and requirements-dev.txt pins it for CI.
dependencies:
@@ -39,6 +39,7 @@ build_ignore:
- apm_modules
- .apm-local
- .claude
- .config
- .gitea
- .gitignore
- .pre-commit-config.yaml
@@ -62,6 +63,8 @@ build_ignore:
- ruff.toml
- requirements-dev.txt
- requirements-dev.lock
- requirements-molecule.txt
- requirements-molecule.lock
- requirements.yml
- gitleaks-report.json
- importer_result.json
+11 -6
View File
@@ -1,7 +1,7 @@
# Image rules
Every rule for the CI and test images in `images/` (`ci`, `molecule-ubuntu2404`,
`molecule-ubuntu2604`), their build in `.gitea/workflows/image.yml`, and the image-smoke
Every rule for the CI and test images in `images/` (`ci`, `molecule-controller`,
`molecule-ubuntu2404`, `molecule-ubuntu2604`), their build in `.gitea/workflows/image.yml`, and the image-smoke
scenarios in `extensions/molecule/`, in full. Each gives its reason (*Why*) and how it is held
(*Held*): a control names its hook or check; review means a person other than the author sees the
change before it merges (`images/` and `.gitea/` are under `CODEOWNERS`); aspirational means
@@ -25,9 +25,9 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
publishes `<base>.N+1` when they differ. Edit `base:` by hand only for a minor or major.
*Why:* a version a person must remember to raise is a version someone forgets. *Held:*
control: the Images workflow assigns it (`next_image_version.py`, with its tests).
- **After the build pushes a new version, a second pull request moves the
`image:<version>@sha256:<digest>` pins in `lint.yml`, `build.yml`, `molecule.yml` and
`gitea-release-key.yml` to it.** Renovate opens it within minutes: the Images run's successful
- **After the build pushes a new version, a second pull request moves its
`image:<version>@sha256:<digest>` pins to it:** `ci` in `lint.yml`, `build.yml` and
`gitea-release-key.yml`; `molecule-controller` and the `molecule-ubuntu*` images in `molecule.yml`. Renovate opens it within minutes: the Images run's successful
completion starts a live Renovate run (`workflow_run` in `renovate.yml`). It changes no image
input, so it publishes nothing. A new image's first pin is a hand-made pull request, and a
major version is moved by hand. *Why:* consumers run exactly the digest a reviewer saw.
@@ -40,7 +40,7 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
## Releases and the build container
- **Each molecule image is one Ubuntu release, named after it; a new release is a new image,
- **Each molecule target image (`molecule-ubuntu*`) is one Ubuntu release, named after it; a new release is a new image,
added by hand** (Renovate's major `ubuntu` updates are disabled). Roles are tested on every
release a target host runs. *Why:* a role is only proven on the release it runs on. *Held:*
review.
@@ -90,3 +90,8 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
`MOLECULE_IMAGE` or `MOLECULE_IMAGE_2604` in `molecule.yml`, so a pin pull request runs them.
*Why:* an image is proven by its own pin pull request before a role depends on it. *Held:*
control: the scenarios, in the Molecule check.
- **`molecule-controller` has no image-smoke scenario: the last `RUN` of its Dockerfile checks
its tool versions, Docker driver, collections and pin checksums, and the full Molecule run of
its pin pull request proves the rest.** *Why:* it is the controller of every scenario, not a
target of one, so a full run tests it more than a scenario of its own could. *Held:* control: the self-checks fail the
build on `main`; review for the full run on the pin pull request.
+6 -5
View File
@@ -1,5 +1,6 @@
# CI image for the Lint, Build and Molecule workflows of this Collection: every tool they used
# to install on each run is baked in, so a job only checks out the code and runs.
# CI image for the Lint and Build workflows of this Collection: every tool they used to install
# on each run is baked in, so a job only checks out the code and runs. Molecule runs in the
# molecule-controller image (ADR 0003).
#
# Built by .gitea/workflows/image.yml with kaniko (repository root as build context,
# because the pin files below are copied in) and pushed, never on pull requests, to
@@ -177,16 +178,16 @@ FROM os AS final
ARG PYTHON_VERSION=3.14
LABEL org.opencontainers.image.title="ci" \
org.opencontainers.image.description="CI tooling image for the mortis.kamino Ansible Collection: the Lint, Build and Molecule workflows run in it, so a job only checks out the code and runs. It bakes in ansible-core, ansible-lint, pre-commit with every hook environment of the repository, antsibull-changelog, galaxy-importer, reuse, molecule with its Docker driver, proxmoxer, the collections of requirements.yml and extensions/molecule/requirements.yml, git, shellcheck, Python 3.11, 3.13 and the version of .python-version (the tools in /opt/venv run on it) next to the distribution python3 and primed ansible-test sanity virtualenvs. Pin it by tag and digest, as a job container or with docker run; it has no Node, so clone with git." \
org.opencontainers.image.description="CI tooling image for the mortis.kamino Ansible Collection: the Lint and Build workflows run in it, so a job only checks out the code and runs; Molecule runs in the molecule-controller image. It bakes in ansible-core, ansible-lint, pre-commit with every hook environment of the repository, antsibull-changelog, galaxy-importer, reuse, molecule with its Docker driver, proxmoxer, the collections of requirements.yml and extensions/molecule/requirements.yml, git, shellcheck, Python 3.11, 3.13 and the version of .python-version (the tools in /opt/venv run on it) next to the distribution python3 and primed ansible-test sanity virtualenvs. Pin it by tag and digest, as a job container or with docker run; it has no Node, so clone with git." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/ci.md" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="CI tooling image for the mortis.kamino Ansible Collection: the Lint, Build and Molecule workflows run in it, so a job only checks out the code and runs." \
net.rkdr.mortis.purpose="CI tooling image for the mortis.kamino Ansible Collection: the Lint and Build workflows run in it, so a job only checks out the code and runs." \
net.rkdr.mortis.contents="Ubuntu 26.04, /opt/venv (ansible-core, ansible-lint, pre-commit, antsibull-changelog, galaxy-importer, reuse, molecule, molecule-plugins[docker], proxmoxer), /opt/collections (community.general, ansible.posix, community.proxmox, community.docker), /opt/pre-commit hook environments, ansible-test sanity venvs, python3 (distribution), python3.11, python3.13, python<PYTHON_VERSION> (the one of /opt/venv), git, shellcheck, /opt/ci-pins.sha256" \
net.rkdr.mortis.usage="Lint and Build: job container on the kamino-docker runner, git.rkdr.net/mortis/ci:version@sha256:digest with PRE_COMMIT_HOME set to /opt/pre-commit. Molecule (host executor, kamino-molecule runner): docker run as the runner user, with the Docker socket and the checkout mounted at the same path. In both, run sha256sum -c /opt/ci-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
net.rkdr.mortis.usage="Lint and Build: job container on the kamino-docker runner, git.rkdr.net/mortis/ci:version@sha256:digest with PRE_COMMIT_HOME set to /opt/pre-commit. Run sha256sum -c /opt/ci-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PRE_COMMIT_HOME=/opt/pre-commit \
+130
View File
@@ -0,0 +1,130 @@
# Controller image of the Molecule workflow of this Collection (ADR 0003): molecule, its Docker
# driver and the collections the scenarios call are baked in, and nothing Lint uses, so a tool
# bump that only Lint needs leaves this image, and the scenarios it selects, alone.
#
# Built by .gitea/workflows/image.yml with kaniko (repository root as build context, because
# the pin files below are copied in) and pushed, never on pull requests, to
# git.rkdr.net/mortis/molecule-controller.
#
# What is baked in, and from where:
# - /opt/venv: requirements-molecule.lock, the hashed lock of requirements-molecule.txt
# (ansible-core, molecule, molecule-plugins[docker] with the docker Python SDK), on the Python
# of .python-version (PYTHON_VERSION below), the one the lock was resolved on.
# - /opt/collections: the collections of requirements.yml (the ones the roles call) and of
# extensions/molecule/requirements.yml (community.docker, which the Docker driver's own
# playbooks call), found through ANSIBLE_COLLECTIONS_PATH.
# - /opt/molecule-pins.sha256: the checksums of the four pin files this image was built from. A
# job runs `sha256sum -c /opt/molecule-pins.sha256` in its checkout; when a pull request changes
# a pin the check fails and the job installs the pinned tools and collections itself.
#
# No image-smoke scenario: the last RUN checks the tools and the pin record, and a full Molecule
# run on the image's pin pull request proves the rest (images/AGENTS.md).
#
# Layers: each COPY / RUN below is one layer, and a layer is pushed as one request, so it must
# stay below Cloudflare's 100 MB request-body limit on git.rkdr.net. The build stage prints the
# compressed size of each directory it copies.
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db AS os
ENV DEBIAN_FRONTEND=noninteractive
# python3 and python3-venv only bootstrap uv in the build stage; ca-certificates serve the
# install a job runs when a pull request changes a pin. apt lists are removed in the same layer.
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates python3 python3-venv \
&& rm -rf /var/lib/apt/lists/*
FROM os AS build
# The Python of /opt/venv: the minor version of .python-version (check_image_versions.py pins fails
# when an ARG PYTHON_VERSION line, or a lock header, differs from it).
ARG PYTHON_VERSION=3.14
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1 \
UV_PYTHON_INSTALL_DIR=/opt/python \
UV_PYTHON_BIN_DIR=/opt/python-bin
WORKDIR /src
COPY requirements-molecule.txt requirements-molecule.lock requirements.yml ./
# Kept at its checkout path: its name matches the root requirements.yml.
COPY extensions/molecule/requirements.yml extensions/molecule/
# uv lives only in this stage; the final image keeps the interpreter it downloaded. libpython is
# removed when the binary does not link it (about 10 MB compressed nothing here loads), as in ci.
RUN set -eu; \
python3 -m venv /opt/uv-venv; \
/opt/uv-venv/bin/pip install uv==0.13.9; \
/opt/uv-venv/bin/uv python install "${PYTHON_VERSION}"; \
d="$(echo /opt/python/cpython-${PYTHON_VERSION}.*/)"; \
if ldd "${d}bin/python${PYTHON_VERSION}" | grep -q libpython; then \
echo "python${PYTHON_VERSION} links libpython: keeping it"; \
else \
rm -f "${d}"lib/libpython*.so*; \
fi
RUN "$(echo /opt/python/cpython-${PYTHON_VERSION}.*/bin/python${PYTHON_VERSION})" -m venv /opt/venv \
&& /opt/venv/bin/pip install --require-hashes -r requirements-molecule.lock -r requirements-molecule.txt
# ANSIBLE_COLLECTIONS_PATH is the target for the install only: a collection found anywhere else on
# the path would be skipped as "already installed" and not copied here.
RUN set -eu; \
for req in requirements.yml extensions/molecule/requirements.yml; do \
ANSIBLE_COLLECTIONS_PATH=/opt/collections \
/opt/venv/bin/ansible-galaxy collection install -r "$req" -p /opt/collections; \
done; \
gz() { tar -C "$(dirname "$1")" -cf - "$(basename "$1")" | gzip -6 | wc -c \
| awk -v d="$1" '{printf "%7.1f MB compressed %s\n", $1 / 1048576, d}'; }; \
for d in /opt/venv /opt/python /opt/collections; do gz "$d"; done
FROM os AS final
ARG PYTHON_VERSION=3.14
LABEL org.opencontainers.image.title="molecule-controller" \
org.opencontainers.image.description="Molecule controller image for the mortis.kamino Ansible Collection: the Molecule workflow runs molecule in it, so a tool only Lint uses does not change it. It bakes in ansible-core, molecule, molecule-plugins with the docker Python SDK, the collections of requirements.yml and extensions/molecule/requirements.yml, and the Python of .python-version (the tools in /opt/venv run on it). Pin it by tag and digest and start it with docker run; it has no Docker CLI, so mount the host one." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-controller.md" \
org.opencontainers.image.licenses="GPL-3.0-or-later" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="Molecule controller image for the mortis.kamino Ansible Collection: the Molecule workflow runs molecule in it, so a tool only Lint uses does not change it." \
net.rkdr.mortis.contents="Ubuntu 26.04, /opt/venv (ansible-core, molecule, molecule-plugins[docker]), /opt/collections (community.general, ansible.posix, community.proxmox, community.docker), python<PYTHON_VERSION> (the one of /opt/venv), python3 (distribution), /opt/molecule-pins.sha256" \
net.rkdr.mortis.usage="Molecule (host executor, kamino-molecule runner): docker run as the runner user, with the Docker socket, the host Docker CLI and the checkout mounted at the same path. Run sha256sum -c /opt/molecule-pins.sha256 in the checkout root and install the pinned tools and collections when a pull request changed them, else use /opt/venv/bin and ANSIBLE_COLLECTIONS_PATH=/opt/collections. See the documentation label."
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
ANSIBLE_COLLECTIONS_PATH=/opt/collections \
PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY --from=build /opt/venv /opt/venv
COPY --from=build /opt/collections /opt/collections
COPY --from=build /opt/python /opt/python
# The pin record, under checkout paths so `sha256sum -c` in a checkout root finds the files.
COPY --from=build /src/requirements-molecule.txt /src/requirements-molecule.lock /src/requirements.yml /opt/molecule-pins/
COPY --from=build /src/extensions/molecule/requirements.yml /opt/molecule-pins/extensions/molecule/
# Self-checks: the tools run on the pinned Python, every pinned collection is installed and the pin
# record verifies against the files it was made from. A failure fails the build, not a later job.
RUN set -eu; \
cd /opt/molecule-pins; \
sha256sum requirements-molecule.txt requirements-molecule.lock requirements.yml \
extensions/molecule/requirements.yml > /opt/molecule-pins.sha256; \
sha256sum --quiet -c /opt/molecule-pins.sha256; \
python -c "import sys; assert '%d.%d' % sys.version_info[:2] == '${PYTHON_VERSION}', sys.version"; \
core="$(sed -n 's/^ansible-core==\([^ ]*\).*/\1/p' requirements-molecule.lock)"; \
test -n "$core"; \
ansible --version | head -n1 | grep -F "core ${core}]"; \
mol="$(sed -n 's/^molecule==\([^ ]*\).*/\1/p' requirements-molecule.lock)"; \
test -n "$mol"; \
molecule --version | grep -F "molecule ${mol}"; \
molecule drivers | grep -qw docker; \
python -c "import docker"; \
collections="$(ansible-galaxy collection list --format json)"; \
for c in $(sed -n 's/^ *- name: *//p' requirements.yml extensions/molecule/requirements.yml); do \
printf '%s' "$collections" | python -c "import json, sys; d = json.load(sys.stdin); sys.exit(0 if any('$c' in v for v in d.values()) else 1)" \
|| { echo "collection $c is not installed" >&2; exit 1; }; \
done; \
ansible-galaxy collection list
+10 -12
View File
@@ -1,7 +1,7 @@
# Molecule test target for the roles of this Collection: Ubuntu 24.04 with systemd
# as PID 1 and the packages the roles manage preinstalled, so a converge makes no
# network calls. It replaces the molecule test image that used to be built locally
# on the CI runner.
# as PID 1 and the fixtures the scenarios need preinstalled. A package a role installs
# is not baked in, so its scenario exercises the install (ADR 0002). It replaces the
# molecule test image that used to be built locally on the CI runner.
#
# Built by .gitea/workflows/image.yml with kaniko and pushed (never on pull
# requests) to git.rkdr.net/mortis/molecule-ubuntu2404. Consumers reference it
@@ -14,7 +14,7 @@
# scenario starts it with command /sbin/init, cgroupns_mode host, /sys/fs/cgroup
# mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN. No privileged mode.
#
# One RUN layer: about 30 MB compressed on top of the 29.8 MB base (estimated from
# One RUN layer: at most about 30 MB compressed on top of the 29.8 MB base (estimated from
# the real .debs, with the .pyc files the postinst scripts compile), far below
# Cloudflare's 100 MB request-body limit on git.rkdr.net (kaniko pushes a layer as
# one request; gnupg adds a few MB, not measured). apt packages are not version-pinned, as in the original image; the
@@ -28,7 +28,7 @@
FROM ubuntu:24.04@sha256:562111b88caa79c71391c0c4d3c2114a7d5c35915c20561fd893cb1e07929e6b
LABEL org.opencontainers.image.title="molecule-ubuntu2404" \
org.opencontainers.image.description="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.description="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the test fixtures (iptables, openssh-server, gnupg) preinstalled. A package a role installs is not baked in and no APT lists are kept, so a scenario refreshes the APT cache before a role installs one. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-ubuntu2404.md" \
@@ -36,22 +36,20 @@ LABEL org.opencontainers.image.title="molecule-ubuntu2404" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:24.04" \
net.rkdr.mortis.purpose="Disposable Ubuntu 24.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection." \
net.rkdr.mortis.contents="Ubuntu 24.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, ufw, fail2ban, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.contents="Ubuntu 24.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.usage="Molecule docker-driver platform with pre_build_image true, command /sbin/init, cgroupns_mode host, /sys/fs/cgroup mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN, security_opts apparmor=unconfined (not privileged). Pin git.rkdr.net/mortis/name:version@sha256:digest. See the documentation label."
ENV DEBIAN_FRONTEND=noninteractive
# systemd as PID 1 with D-Bus, sudo and networking tools; the Python Ansible needs on
# the target (python3-apt for the apt module); the firewall and intrusion-prevention
# packages the roles manage (python3-systemd is a dependency of fail2ban's systemd
# backend); sshd, enabled so a converge can test it under systemd; gnupg, which the docker
# scenario signs its stand-in APT repository with and which would otherwise cost it an
# apt update and install in every run.
# the target (python3-apt for the apt module, python3-systemd for the journal); iptables;
# sshd, enabled so a converge can test it under systemd; gnupg, which the docker scenario
# signs its stand-in APT repository with. ufw and fail2ban are left out: their roles install them.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
systemd systemd-sysv dbus sudo iproute2 ca-certificates \
python3 python3-apt python3-systemd \
iptables ufw fail2ban \
iptables \
openssh-server \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
+10 -12
View File
@@ -1,7 +1,7 @@
# Molecule test target for the roles of this Collection: Ubuntu 26.04 with systemd
# as PID 1 and the packages the roles manage preinstalled, so a converge makes no
# network calls. It replaces the molecule test image that used to be built locally
# on the CI runner.
# as PID 1 and the fixtures the scenarios need preinstalled. A package a role installs
# is not baked in, so its scenario exercises the install (ADR 0002). It replaces the
# molecule test image that used to be built locally on the CI runner.
#
# Built by .gitea/workflows/image.yml with kaniko and pushed (never on pull
# requests) to git.rkdr.net/mortis/molecule-ubuntu2604. Consumers reference it
@@ -14,7 +14,7 @@
# scenario starts it with command /sbin/init, cgroupns_mode host, /sys/fs/cgroup
# mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN. No privileged mode.
#
# One RUN layer: about 30 MB compressed on top of the 29.8 MB base (estimated from
# One RUN layer: at most about 30 MB compressed on top of the 29.8 MB base (estimated from
# the real .debs, with the .pyc files the postinst scripts compile), far below
# Cloudflare's 100 MB request-body limit on git.rkdr.net (kaniko pushes a layer as
# one request; gnupg adds a few MB, not measured). apt packages are not version-pinned, as in the original image; the
@@ -28,7 +28,7 @@
FROM ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db
LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the packages the roles manage (iptables, ufw, fail2ban, openssh-server) preinstalled, so a converge makes no network calls. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.description="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection. systemd runs as PID 1 with D-Bus, sudo, python3 and the test fixtures (iptables, openssh-server, gnupg) preinstalled. A package a role installs is not baked in and no APT lists are kept, so a scenario refreshes the APT cache before a role installs one. Start it as a molecule platform (usage label); it carries throwaway SSH host keys and is a test target only, never to be exposed." \
org.opencontainers.image.source="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.url="https://git.rkdr.net/mortis/kamino" \
org.opencontainers.image.documentation="https://git.rkdr.net/mortis/kamino/src/branch/main/docs/images/molecule-ubuntu2604.md" \
@@ -36,24 +36,22 @@ LABEL org.opencontainers.image.title="molecule-ubuntu2604" \
org.opencontainers.image.authors="Defame1297 and contributors" \
org.opencontainers.image.base.name="ubuntu:26.04" \
net.rkdr.mortis.purpose="Disposable Ubuntu 26.04 test target for the molecule scenarios of the mortis.kamino Ansible Collection." \
net.rkdr.mortis.contents="Ubuntu 26.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, ufw, fail2ban, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.contents="Ubuntu 26.04, systemd, systemd-sysv, dbus, sudo, iproute2, ca-certificates, python3, python3-apt, python3-systemd, iptables, openssh-server (ssh enabled), gnupg" \
net.rkdr.mortis.usage="Molecule docker-driver platform with pre_build_image true, command /sbin/init, cgroupns_mode host, /sys/fs/cgroup mounted rw, tmpfs on /run and /run/lock, capability NET_ADMIN, security_opts apparmor=unconfined (not privileged). Pin git.rkdr.net/mortis/name:version@sha256:digest. See the documentation label."
ENV DEBIAN_FRONTEND=noninteractive
# systemd as PID 1 with D-Bus, sudo and networking tools; the Python Ansible needs on
# the target (python3-apt for the apt module); the firewall and intrusion-prevention
# packages the roles manage (python3-systemd is a dependency of fail2ban's systemd
# backend); sshd, enabled so a converge can test it under systemd; gnupg, which the docker
# scenario signs its stand-in APT repository with and which would otherwise cost it an
# apt update and install in every run.
# the target (python3-apt for the apt module, python3-systemd for the journal); iptables;
# sshd, enabled so a converge can test it under systemd; gnupg, which the docker scenario
# signs its stand-in APT repository with. ufw and fail2ban are left out: their roles install them.
# root's sudo (Ansible's become here) skips pam_unix's account check, whose unix_chkpwd
# helper fails inside the container; non-root callers still go through pam_unix.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
systemd systemd-sysv dbus sudo iproute2 ca-certificates \
python3 python3-apt python3-systemd \
iptables ufw fail2ban \
iptables \
openssh-server \
gnupg \
&& rm -rf /var/lib/apt/lists/* \
+56 -15
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit.",
"description": "Run by .gitea/workflows/renovate.yml on this repository's own runner. Policy: automerge minor and patch, majors by hand. Every bot pull request must pass scripts/check_bot_pr_diff.py (lint workflow), which allows only version, tag, digest and pin lines. Image versions are assigned by the Images workflow when an image's inputs change, so a bot pull request needs no version edit. Updates open on Mondays (UTC), so any Monday run can act; the own image pins and vulnerability fixes found on osv.dev open at any time. The weekly window and the groups bound the volume, so there is no hourly pull request limit. Vulnerability fixes skip the release-age wait, so they are never automerged: a person checks a fix that had no time to be pulled as a compromised release. Base-image bumps are manual: every Dockerfile is FROM ubuntu, grouped with the job containers.",
"extends": [
"config:recommended",
":enablePreCommit"
@@ -19,7 +19,7 @@
],
"automerge": true,
"automergeType": "pr",
"prHourlyLimit": 5,
"prHourlyLimit": 0,
"minimumReleaseAge": "3 days",
"minimumReleaseAgeBehaviour": "timestamp-optional",
"timezone": "UTC",
@@ -31,7 +31,8 @@
},
"pip-compile": {
"managerFilePatterns": [
"/^requirements-dev\\.lock$/"
"/^requirements-dev\\.lock$/",
"/^requirements-molecule\\.lock$/"
]
},
"pre-commit": {
@@ -53,9 +54,10 @@
"customManagers": [
{
"customType": "regex",
"description": "The uv pin that installs the build-stage Python interpreters of the ci image (images/ci/Dockerfile). It is an image input: the merge publishes a new ci version.",
"description": "The uv pin that installs the build-stage Python interpreters of the ci and molecule-controller images (their Dockerfiles). It is an image input: the merge publishes a new version of each.",
"managerFilePatterns": [
"/^images/ci/Dockerfile$/"
"/^images/ci/Dockerfile$/",
"/^images/molecule-controller/Dockerfile$/"
],
"matchStrings": [
"\\buv==(?<currentValue>[0-9][0-9A-Za-z.+!_-]*)"
@@ -77,12 +79,12 @@
},
{
"customType": "regex",
"description": "The CI_IMAGE, MOLECULE_IMAGE and MOLECULE_IMAGE_<release> values of molecule.yml are a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Used by the pin-follow rule below.",
"description": "The CONTROLLER_IMAGE (molecule-controller), MOLECULE_IMAGE and MOLECULE_IMAGE_<release> values of molecule.yml are a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Used by the pin-follow rule below.",
"managerFilePatterns": [
"/^\\.gitea/workflows/molecule\\.yml$/"
],
"matchStrings": [
"(?:CI_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
"(?:CONTROLLER_IMAGE|MOLECULE_IMAGE(?:_[0-9]+)?):\\s*>-\\s*\\n\\s*(?<depName>git\\.rkdr\\.net/mortis/[a-z0-9._-]+):(?<currentValue>[^@\\s]+)@(?<currentDigest>sha256:[0-9a-f]{64})"
],
"datasourceTemplate": "docker",
"versioningTemplate": "semver"
@@ -90,7 +92,7 @@
],
"packageRules": [
{
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version.",
"description": "Dockerfile base-image tag and digest bumps (images/*/Dockerfile) MAY automerge. Kamino is the untrusted side and the bump pull request's own CI exercises the new image before the merge. Placed first so the major-version rule below still turns automerge off. The merge publishes a new image version. Today every Dockerfile is FROM ubuntu, whose bumps join the manual ubuntu base images group below; this rule is the safety net for a future base image of another kind.",
"matchManagers": [
"dockerfile"
],
@@ -124,7 +126,7 @@
]
},
{
"description": "ansible-core and ansible-lint move together (the lint rules follow the core version). Minor and patch bumps automerge like the rest, majors are manual. A new ansible-core minor can bring new sanity findings: the shared tests/sanity/ignore-common.txt covers the known ones, and the Build check (ansible-test sanity) is the gate, so a bump that shows new findings stays red and is not merged.",
"description": "ansible-core and ansible-lint move together (the lint rules follow the core version). Minor and patch bumps automerge like the rest, majors are manual. A new ansible-core minor can bring new sanity findings: the shared tests/sanity/ignore-common.txt covers the known ones, and the Build check (ansible-test sanity) is the gate, so a bump that shows new findings stays red and is not merged. The group spans requirements-dev.lock and requirements-molecule.lock, so one pull request moves both ansible-core pins, which check_image_versions.py pins holds equal.",
"groupName": "ansible tooling",
"matchDatasources": [
"pypi"
@@ -145,12 +147,18 @@
"allowedVersions": "<=26.10.1"
},
{
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged, and kept in their own branch so the Dockerfile base-image bumps are not held back with them.",
"description": "The job containers of image.yml (matrix job_image, ubuntu by digest) hold the org registry push credential while the image job runs: never automerged. Their ubuntu bumps share one branch with the Dockerfile FROM bumps (ubuntu base images rule below), so that pull request is manual too: a group automerges only if every update in it does.",
"matchFileNames": [
".gitea/workflows/image.yml"
],
"automerge": false,
"additionalBranchPrefix": "job-container-"
"automerge": false
},
{
"description": "The Dockerfile FROM digests and the image.yml job_image digests of one Ubuntu update move in one pull request, so the release pair stays in step and one Images run covers both.",
"matchPackageNames": [
"ubuntu"
],
"groupName": "ubuntu base images"
},
{
"description": "Safety net only: kaniko is pinned by layer digests in image.yml and no Renovate manager reads them, so it is updated by hand. If a manager ever starts to read it, its bumps are not automerged.",
@@ -160,11 +168,15 @@
"automerge": false
},
{
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above).",
"description": "Pin follow-up for our own images (git.rkdr.net/mortis/*): moves the image:<version>@sha256:<digest> pins of lint.yml, build.yml, molecule.yml and gitea-release-key.yml to the newest published version and its digest, and automerges. The Images workflow's completion starts a Renovate run, so this pull request opens minutes after a new version is pushed. The pull request's own Lint and Build run in the new image before the merge, and scripts/check_bot_pr_diff.py allows only these pin lines. The registry lists tags and digests anonymously, so no hostRules are needed. A major version stays manual (rule above). One pull request moves every image an Images run published (ci, molecule-controller and both molecule target images), so one Molecule run tests them together. Exempt from the weekly schedule, so the pins on main catch up with a new image within minutes.",
"matchPackageNames": [
"git.rkdr.net/mortis/**"
],
"automerge": true
"automerge": true,
"groupName": "own CI images",
"schedule": [
"at any time"
]
},
{
"description": "Look the pre-commit hook repositories up with git ls-remote (git-tags) instead of the GitHub API. This run has no GitHub token, and the github-tags datasource then either skips every hook (skipReason github-token-required, dry run 3880) or is refused at once with 403 rate limit (githubTokenWarn off, local run). git-tags needs no API and no credential, and it uses the dereferenced hash of an annotated tag, so the new rev is the commit, as pre-commit needs. The `# frozen:` form is kept by the manager's own replace template. It works only together with RENOVATE_GITHUB_TOKEN_WARN=false in renovate.yml: the token check runs after extraction and skips every github-tags dependency before a package rule can change its datasource (local run, Renovate 44.161.0). git-tags has no release timestamps, so minimumReleaseAge cannot delay a hook bump: hook bumps are never automerged, a person reviews each one.",
@@ -177,16 +189,45 @@
"overrideDatasource": "git-tags",
"overridePackageName": "https://github.com/{{{depName}}}",
"automerge": false
},
{
"description": "Lint and build tooling in one weekly pull request across requirements-dev.lock and the ci image's uv pin, so one ci image build instead of one per tool.",
"matchDatasources": [
"pypi"
],
"matchPackageNames": [
"apm-cli",
"antsibull-changelog",
"galaxy-importer",
"reuse",
"pre-commit",
"uv"
],
"groupName": "lint tooling"
},
{
"description": "The pre-commit hooks in one weekly pull request; never automerged (rule above).",
"matchManagers": [
"pre-commit"
],
"groupName": "pre-commit hooks"
}
],
"lockFileMaintenance": {
"enabled": true,
"schedule": [
"before 6am on monday"
"on monday"
],
"automerge": false,
"labels": [
"lock-file-maintenance"
]
},
"schedule": [
"on monday"
],
"osvVulnerabilityAlerts": true,
"vulnerabilityAlerts": {
"automerge": false
}
}
+846
View File
@@ -0,0 +1,846 @@
#
# This file is autogenerated by pip-compile with Python 3.14
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements-molecule.lock --strip-extras requirements-molecule.txt
#
ansible-compat==26.11.1 \
--hash=sha256:d22e0a48d8d79e727b0f56db3573b02bde2189b5bfbef067230a34c0bcbff94a \
--hash=sha256:ed9717fde1705a58678c1503e46316a36f7392229c2444d2b2f1b6de12be9f25
# via molecule
ansible-core==2.22.0 \
--hash=sha256:8285d4cc81c3e3eb2d954e75531724fe0ae154d228475638123451f034a74657 \
--hash=sha256:bf50b4a0cfa985e30585c7ba301897ea7050d224ca49d2816cab10e33a160e1c
# via
# -r requirements-molecule.txt
# ansible-compat
# molecule
attrs==26.1.0 \
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
# via
# jsonschema
# referencing
bracex==3.2.4 \
--hash=sha256:82e9e738b63fca213c33211d30b0b1ca330896a1091736e78da2c1bcda93ab30 \
--hash=sha256:c1e67eb59f81445dee15b2c588b7c81352b697cfbd6c4931a2943ea6b71eb5ea
# via wcmatch
certifi==2026.11.20 \
--hash=sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f \
--hash=sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e
# via requests
cffi==2.1.1 \
--hash=sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e \
--hash=sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66 \
--hash=sha256:0beceaabe56af686895136a2de78db54ecd8e4046b236b8fd6d6cb61389e9bf2 \
--hash=sha256:154852545011f779917b11c78db2358d095da62a9a172b78ad0a583ee5adc0d0 \
--hash=sha256:194cffa889098ced9976c3fc6340305e43f6303657d298da55366907c05c22d6 \
--hash=sha256:19ee6127ee34de7d83ce3d371ebc5ed91addbdcc39f9ab15ce4eb35a4e534971 \
--hash=sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c \
--hash=sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d \
--hash=sha256:1dea0e4d7d4f11f619fe8c1d76caf49e24405b4b5743c0e3be16a500ecd930c9 \
--hash=sha256:208f941bb9d18e768138677f0a6d2ce01f590df56043dda1df1535ac57c88517 \
--hash=sha256:210019b6c7cf07f081b4c54635c8cf744377001350e29cc0f81c4377b4797735 \
--hash=sha256:246fa40ce8645a614ff682e0b70f37134e460eaf93a775e0cbe3cca585a67a80 \
--hash=sha256:25792eac27877609e7bb06d42ff88278a6624fff2ba9bbb523c09616b117e80f \
--hash=sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1 \
--hash=sha256:28907ab9bfb6aa13184cfc17c6b8e1023c5ab6fd7076d8c20a35e59fe04f8f29 \
--hash=sha256:2ae64be792b8966f2c69538199728b290e34726562896df1e5dc8ffd8d8188e8 \
--hash=sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c \
--hash=sha256:3143d81e29e1e20a9ce10901ec369012947876596f75a222235965f2b7ae832e \
--hash=sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48 \
--hash=sha256:3311ed60d36f83378794e1009ac6258bafbf81f7888b4caa7b35a521e3f95813 \
--hash=sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac \
--hash=sha256:34e261f78cb6ceaaa36f42f2613f4380d94d9c759a9c73c769ee6e0247364632 \
--hash=sha256:363e05fa78e15116c3c32c210ee36884fd6b9afa6d440e47112c3bd511d64cb6 \
--hash=sha256:398aff33cee2767e3e781d2554c54bd0dff386bb437581e0d8011fde1a942ec1 \
--hash=sha256:3d22a20b1fb1632cc72c22f95f7b0d2961c3e1c235f245ba4c606c4771035659 \
--hash=sha256:42a494cee34437f05546455144f2b5d9ac09b1face62bcfce597d2e521066688 \
--hash=sha256:42e2f76b9455f5a9a844f770bf3e200ed3da0e15f5df3db9c31fe80b04b3d004 \
--hash=sha256:42f6930c31dc7f50732c9ae793c2786c7b6b044195967bbdde40bb9be81c4cc0 \
--hash=sha256:456a61fa52d579ebf9df2e9552ead5129855dbaff6c1e5a9b1bc408809bdc062 \
--hash=sha256:471cee653ae88de62096552e6d24ccb4a5adb8c8c9f10b5054d0122c15bf2779 \
--hash=sha256:49cbc70e6542d4ccccb936558d1064a8012541e78f821f955cff24e357776c94 \
--hash=sha256:4a7c934f7360e8cd64fe9efadcbd10c7c6364f531e432b9a4bf5ccbc9e0e8b50 \
--hash=sha256:4be96343e422f2dfcd12ab5c9f5aebe03f82f737c6bffeca6830b3875cb44aab \
--hash=sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac \
--hash=sha256:507a24c282e0f42f8ed737cf048572cbf580468da5555764a8331735e9c736b6 \
--hash=sha256:51b31d1c98274844cfd7838ce00bfc27c7423a4dc00fc0772fc3331c2cc90676 \
--hash=sha256:58acb8ab8e295e6c5ea12f888cbb13cf21511ef2a3303a23f4325c29d17fe5c1 \
--hash=sha256:5a59cc1c4442bc3d5c703bf720b51138d0bfc173618807c9ee2490a7541dd3d9 \
--hash=sha256:5bb4e7ea95dcd6a014a6fef62e62467d67d8e582326443f3d68e71d6320a9fcf \
--hash=sha256:5c58fe613dc5e5336357eff555824a314d8e43282600435c8d1cb6a7a2fedd13 \
--hash=sha256:5e7cecbaadb83884793e05828cee59b210b24583b9c7425d0ba6a754fe22eb4e \
--hash=sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e \
--hash=sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973 \
--hash=sha256:64faea20f4e2613363a1a9b9c7dd73058f3ecd00133a511e72ad7c511658f527 \
--hash=sha256:661c298b4821edebead0c91edd2b00374d67ad7c5a1f7a91d4442633b79d6a72 \
--hash=sha256:68e62fe11f30d5ca8289242866f0a5291402d8529ca2178ab8afc5c9694ae890 \
--hash=sha256:6a8dddef476fab96d066d578fc88526767b836ab5ab21754e1d5bf3879c31c7c \
--hash=sha256:6e192623c49c94421616a5778fba35cf0d5a8d000650c1967ef4448ee5cdd990 \
--hash=sha256:7225e4514edb64eb6740324353e0da0711954fd8d7da4576755b1c6e09b697cd \
--hash=sha256:75f80557d1389eddbd0de2681f6a390a0c5338c31ddaa821381c203fc3fd50d9 \
--hash=sha256:770de9db11e84213beec501cfcaa013b019820ca881e03344dea5844f7876d94 \
--hash=sha256:7750c6449dff7864bb9bb27ddfb0267756189201a3afc911d82b3caacd70dfc3 \
--hash=sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80 \
--hash=sha256:7ce713ace7c0e4520535b42b77eaa742c16dab813978064913e5a3cf82973b41 \
--hash=sha256:7da0c5eff80f0197f3b3d1232ec5a682a9325f4ae9016a78f5f5ca35f9ced1f5 \
--hash=sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c \
--hash=sha256:811bd1e21d32de12efca32393a0ab3f5133b54fce9bd44b8bd77ab07da14bf6a \
--hash=sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4 \
--hash=sha256:937c0052c05a31ca1daf18de3158eed4dbfcb9cc107adbea227728d647be701e \
--hash=sha256:9d2055050ea716bd38b7f7f1579c275386646b4894c155a3e2f3cd62ed41b7c6 \
--hash=sha256:9f8d177621de5cb38ee3e731eda45d421db093ec0739f46a5594babda7987a98 \
--hash=sha256:a2d7755bef5a12ed488f4ef1f1b69ee9191d7396083b755a5d2295f6edb4768b \
--hash=sha256:a48d62ab9d6f4f98c983223a547af44be6ca3691074c31cecced6facd3ba2dc1 \
--hash=sha256:a4f00aa42f75d6e4595e8866e748cc1705adc0cddfeb2ca86d0d03993d63ba03 \
--hash=sha256:a6e721d4b0e45d5b65e87534470e67b18dcd092c83f68fba09f152b9cbc061af \
--hash=sha256:a730a083190634c65cca36ba5f489531576ebd79bcd5c8e172130f6453127231 \
--hash=sha256:a931079504ecc49efed7744c476a5c343a92fabf66dec2db95edb1b2fdc770e2 \
--hash=sha256:aa9511c62d14da7aacc9b4bf51f3f697a621e83b2d6919008243c3aad168eea3 \
--hash=sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836 \
--hash=sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5 \
--hash=sha256:aeae0e330c9f6acd681f647d46cefd30c29f93e3392882e792e82080c9691399 \
--hash=sha256:b0431303acaea1089ad4b3e9ce4e6518193def1118d4073ca848635ee4ea2e96 \
--hash=sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e \
--hash=sha256:baed1e86cc735622097354b9d1281406caf42ff42a886d29faa8e8d1630333be \
--hash=sha256:c1453022f490d2459a11819d83ad1d586e9ff65a12ac3e705ffebd46d3685dcf \
--hash=sha256:c26608d2222fb1e94487e4a387d85f13eb55d5ed725cb25a0c589ac4ee60e7bc \
--hash=sha256:c7659f22557c5a0bc4855cd635f55edec690cc008a40768527762cb9fb263455 \
--hash=sha256:c8c69575568085ba0b1b10c0249d779a214aea6f6522e949a0fc9fb0fcb449d0 \
--hash=sha256:c8d2c9fd1f2d16f780d15127abb050d13d1a76c03a4bd87d7e4980e45e511e12 \
--hash=sha256:ca82be1a1d406ecfe1d25dc16cb33488e5a16bf4438c9fb590484ea29d92478b \
--hash=sha256:cc572dace3f60ef98d7b12ff411d20f5362feb31a0439eab0085bbfd349982d7 \
--hash=sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692 \
--hash=sha256:d28630f5854ab07ab1fd4aba756de52326c82e6be15d414b12793f1975048b54 \
--hash=sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3 \
--hash=sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b \
--hash=sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be \
--hash=sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d \
--hash=sha256:df423d40ee8654634421812bc3b196da3f9bd7d32929da813f8394c4348a5358 \
--hash=sha256:df913725b79db7bcf03448f36b7bf8815363417d5b58deecf9305e3e30f0f21a \
--hash=sha256:e0bcb7e0f677f543555d2adff3bf19c05f66cdb4796e5ff602442ab2fe3c4ef7 \
--hash=sha256:e2d65b31f36619cda3999b78b2aa9632e76b78448e7a56fc4240824200e7c4fc \
--hash=sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960 \
--hash=sha256:f16c709686a78c727bbbf059f92b0bf41c6fc60deec706d2dc19f529175a6125 \
--hash=sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb \
--hash=sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a \
--hash=sha256:f5cfbc5fe74540d335175b656c725d74d90e3730c626d92575eea35029d9afaa \
--hash=sha256:f81b3b8f3d4e343550fa4baa0e479bba9f2d29ce9c2e9b51d1ce1718d7442fcf \
--hash=sha256:f8ec5e643a9a937f64e1999eb9f75d072263751912dc5cd06d3c85f8f44be7c3 \
--hash=sha256:fb92203a88b3d3053034db775110081c49d28be6551923805e039924093761e4 \
--hash=sha256:fcd22650c908d7b7da162bbfaab594a1227a15d1643a98c68b122ac642fa2264
# via cryptography
charset-normalizer==3.5.3 \
--hash=sha256:00edb7682962c596f774bfa126e6b6f885b7af2319f448d327591c284a482de8 \
--hash=sha256:01b35bec964b92b89bdf94adf931d2e80a15f1c7b93bf850b4430cca23f7a2a2 \
--hash=sha256:020cabbb90926b2d8b022a5e057ab349f28844b61f34117323fc08c2971915e3 \
--hash=sha256:02b1abf64742b2d0782172cd2542616e462c201c829c23aff833390babe2967f \
--hash=sha256:06d07272f70d9880fba32d4876e966ae4dc9961134bc989066a0901509dfd8cf \
--hash=sha256:0810592b80dc5a97f8103443460264b588f31c6baa8a20abae7c683435d8117a \
--hash=sha256:085a5d1f49eaf96596d79494fcab18d9a32db6e345da15d6debfc90110b20679 \
--hash=sha256:09833ba78c91f0d1fd06387c69dae9f079428b77ea05eaaf1553eecead31fb68 \
--hash=sha256:0b3fc6f7dd9db4a7782e65dc98eb80b2a91a854cf54a03dd93649be2f7ca638d \
--hash=sha256:0c0fe07631dce6dae788a59c20ed927adc6feeb2d9ed440747eb367d89822a45 \
--hash=sha256:0ca25f1b1167e9fb94d93d3708df0b631de241bf8440947b0cb9f8c4cb66fed0 \
--hash=sha256:0ca2da4a505fae7ef95922f8d48235b2e49ff8f10f4edcc0481e5f6526ba3841 \
--hash=sha256:0cf4cb8d75090a8da3bd30c0963b2c6c6114e791c6fc060c3cef8971497b1f04 \
--hash=sha256:106b9d0438e2ff0a0e8ebd869273fcb3640af28323bba8651c714c57efb38e51 \
--hash=sha256:11ad35a0b856ad8bbd0c9e900c069461a4661694714aa17b6e6e2e8621e1c373 \
--hash=sha256:139aeb8ca63946dc79364c37f2c9cfe5c1b7f3882f2c47484d0e54bf14b921b0 \
--hash=sha256:1714ff1ba001da5241a585fbd17a7742a61ad34efb4be8404aca5679f51e53ea \
--hash=sha256:183aee7e84789391e547ec1609f8269332b9b123d21e97f7ef79eaa474c47e08 \
--hash=sha256:1a34385837db59d5de814c9f1e0f4157b571f9ce0eabdaeace410aa93bf5df62 \
--hash=sha256:1b2704f4651539eab50ba104a975b96c3cd5246011aa0755d2dd71ac12546644 \
--hash=sha256:2246873913d7db43ed5a3d98ace398b989b2ae20b77c8d761a7bef5fdb9bed42 \
--hash=sha256:249bf0b6f43985c33c83adbbab0ca71246ec24c82d960fa00c4ddb2cfed25db9 \
--hash=sha256:256b434b2860ef9da1cb6a5fd4ebb5d600936668e50e2035858948b96b068ecd \
--hash=sha256:26c6ad87bb79628954b52f8f7b9e18ab5cd9667546712ded9689fb7677e630d6 \
--hash=sha256:277b72183b96879887f0c3aa0bdac1fee08a6c7e67bad53145c4fd416d99dfd3 \
--hash=sha256:28ba8e6361e0f319641707484994096ceb77e05c29eaad2919756218c0c89001 \
--hash=sha256:28d954a437bfa5fcdfe7ad8902cf4347a8486f34a86c5f39003bc1288eb67d72 \
--hash=sha256:2978c799237eb66619d8951d2ab7efd317414cb6682160e05614ce1c8b5c905f \
--hash=sha256:29ac44f5878142128ffe4fa7e041ddc4cc5fafe43983245b9a141908c40b515d \
--hash=sha256:2a6f937e0b70133d1f826d0a253331b6fe1a4c874808cc12e16f2fb8177042f4 \
--hash=sha256:2b7797a5b0cb197f118fd13b41c14c5a3c38dd625a87c1da58a3066cf53254fd \
--hash=sha256:2c4e0050b732ee3dca3676a5f5cf7fbd0c131761c194f1bb1d24c055fad071cf \
--hash=sha256:2e7fbd98443f28a5ed8004f0b058edcc4720a3d344adf007c0b7f1adbff2f59f \
--hash=sha256:2f2d973d3c79fbd1066d63d1bafb2ade66934c0840ed149f6fac13c3fdf80793 \
--hash=sha256:323d5cf6df3ea724afcc3bfb07c73be06d2e8200a8b6b37979a300ae1e7836d0 \
--hash=sha256:326a7a0e3715c3ac24c21e7a3b831d6799cc795bff260aa49c23b69025852f99 \
--hash=sha256:34054580168b04e90e6c7c0f6c80173fa2d4f72c4db91c9095598454f96d6389 \
--hash=sha256:366f5efe95a6149ecbcebf779c2594a6a4ff6fc116402826c72ed0eccd6aabe9 \
--hash=sha256:390ef7c7e018c0abb8c0ec2d28ee137567ff50c3706facf6d115cac832ac993b \
--hash=sha256:39229c222445415db07a0be4dff8ad1addc3126644d7aa72d73f1575b637d69e \
--hash=sha256:396fdf2d4367674531a7c8d54ecabbc8e5131e3a1a06270285eb99f3140143df \
--hash=sha256:39e019884c8f857393df954d35f42bf99c5ab85af226fe74d1410188c6fec31f \
--hash=sha256:3ce4e4587e451ebc7d9899a7a1f539ea30a3c712d7bc8e0d256923c697fd5dcc \
--hash=sha256:3e8da696ef1935a019c10ec16555a062183ddf6d5901e296edeca4b2a8f84e1d \
--hash=sha256:40b2ba91f0851aa864994b3c7022e4d96d09026717e6a72e44410d6fb3a74a13 \
--hash=sha256:45aa4ccf5a6caba138dd0f8bf36fa3e26654585d534881b62ce5e4fea2487772 \
--hash=sha256:4831fb33e98e92140fa17d4d673a9f49f9c0ddd056115b722858793e4b86b0c5 \
--hash=sha256:48f7c7f537246bb3af2b3139f44716a30b21e78c2fd1cff0f3e392fbd55d8044 \
--hash=sha256:499e4bbeb1e79b14756311a1d12cb88112f244423e152d80981d9bcaff3279fa \
--hash=sha256:4a991dbd7aec868fe10802b02bddbf898173a47ba236f2d6afb4ab1f98243534 \
--hash=sha256:4ff5e27478681ef1b13b036baaf9beaf9b4c6990e903c752ad3b8764692c6d6c \
--hash=sha256:56405211fa124c393eea14b3aeacf5b90de72b1f69b0a60c9bc40b01dfe71a42 \
--hash=sha256:581d6e7df9b58d34147e21efde42a480b5087fe54f31e42550c26321566ba1e4 \
--hash=sha256:5970d148182b6b7c22b8290a81f02fb521c4e7aee6747743b3e645db58d5001a \
--hash=sha256:5f86753952f7de3abc7ce871f8239ce4e0d32a91c84d22f3a667e669907c3897 \
--hash=sha256:6118055f4ad0d94e016eadbb86caed9caf2c9033631ed70964ba631c1336984f \
--hash=sha256:61e32fdbf56f4cd25a1efa451c8b5fe886fc5e00143ccaacafdf21f301fad059 \
--hash=sha256:61f3258f700412c68fde407e7c749ed6930e795ea8f5ead9a40afddefbec12c4 \
--hash=sha256:6423accb6ecd1456bf824bbac98ba919398523a69ee5f1680dd1da88769de866 \
--hash=sha256:643724071b01cc0369026e259850791212cc187c6031d0e930abcd253f128e0c \
--hash=sha256:656b9744bac4493561d28b56d7d646afd7a8471254ef7004d849aa8368020037 \
--hash=sha256:6651fecdac146ecfa52700e02a5fa3b3677bddf5fced4983b43e904244de3f6a \
--hash=sha256:67bb767a8de7a2b1164c74fdbe5cdc32b9c15d7142efd9a6dc77ff63da94e846 \
--hash=sha256:6b702d36c565f6c650f4b479488f475b2982132ab8d0840d42b1442462c21056 \
--hash=sha256:6bfbbb9414dd0f5b81c259deb7e50b4b44e65e05879eee482351bdabed49d7f4 \
--hash=sha256:6c80b4e83e2fbddd25fe27804cdfc45ef71bb387522caa575af42118d72dc970 \
--hash=sha256:6c8abe7d59bbc891e5080b8b142c36db93154f840c4baf7c83ad6273a1a15397 \
--hash=sha256:6dde7edd9ba5005389bc7c0ab461411f281dbacb2b06e52bd23592eba42bb503 \
--hash=sha256:6eea31136fd924ecbb4e7c4f3df4b18230409629a22b3896f38a6754d5857794 \
--hash=sha256:70f65dd0c2ed79ea2d9776096e9c7d25e398c2c03eb31877753598d201d91784 \
--hash=sha256:73b4ddf1230df56c9e7017a16e3f5171b6ef0e4ff554a418a370d7ac7245bd84 \
--hash=sha256:747e83d415939612284afdc99f15295382639c0d3fc69a73aeb84b380d1f4af3 \
--hash=sha256:7a7e5bb8974842ad747d4a2b9fb928f84c3cdbe2c2fd7e405197fc1a1badaeaa \
--hash=sha256:7c313b46730b4a68bb31450973467313b2c496fefa42ae316b86c186cba74613 \
--hash=sha256:7fd816f466883dcaac196ac77271d0292eee4a81f4db1191b95d15328f335937 \
--hash=sha256:7fdd11094a0b07bce306b359fa7311c71d93466d967b3b345f2e9f03d8b2c959 \
--hash=sha256:806e72ebaeef54d7faa03414be9e8409eb3dcae49fba089d62063a60c0b5a4e5 \
--hash=sha256:81132eaffa984f0a399233df4cd383caad18e8cadc6c24c568cf9324732a9768 \
--hash=sha256:8231365b03b702b516aad35c9515694177ac31c9dc6240326f07308a4c45c708 \
--hash=sha256:826d82356907350f345cf0aa744d43a69ac7948bd60f460f997cde86928beadf \
--hash=sha256:84356c7b7ddf090e3e4692cb99fc820e6189b5f6662ca7e8589f41095cc8efca \
--hash=sha256:87d5a237d6531c654e7b9b319be9ba7e368665c466e02a03cfd4d3d77730782e \
--hash=sha256:87f7d6c595465a25d33fa3d5215a571a98c4cad00ead3ad18ebfb62adb3d3e6e \
--hash=sha256:885f202d6e4e2298bea9802ffc6d8c7dc45394199a8dd9e1492f05fe32dce311 \
--hash=sha256:8b969f0309de905101bc3d2471c112e9ccbba711a7590b12d51f372b4163688a \
--hash=sha256:8baddc6349faf49edae4d1322f12b681b9e86acacd01874457c997437ef4ccaa \
--hash=sha256:8c4dfcd3269f13dff7f29f9c332d54a4a21f17be818b49e769e111befd4d39e6 \
--hash=sha256:90b1ff6cb9c7a204a3b79b1b0ed6ac8a1d8fed3b6dc69e50ae5de0f358ee81d4 \
--hash=sha256:92bf85ecec3ad6374ae50d870bd1deb34de12bc1158b5fd09036d4c435c6f58c \
--hash=sha256:92ddc32b6a1508ea145f4f7995e00666db454b8fd3e2cae6c2ecbde4f4d44616 \
--hash=sha256:948fb3649416a70bcdbb267d79c7048e8aa16e989ab9da09f416e67cdd3d6b8c \
--hash=sha256:94b595e64bc2927f679774de50df340b7828dc1c07c99149ba7c2d0828dd8bf3 \
--hash=sha256:94c9d5d91c16554f6397b823d9e47181ba100d830ab16b5d720adc229e17b2e2 \
--hash=sha256:9510da88bdebc903be7844f31523ac8d7b3f63e167db54b6045104a2354afa6a \
--hash=sha256:96387278c3b17bc1170f80693398d0babac7b41df128ced8e27588a7155d95b2 \
--hash=sha256:96e268b0cbda016ac519513294fcd17032264085b600abaac58b93049477e132 \
--hash=sha256:9902e80096a94cf70fb72d12ae40e3b187b40e96fa722873d4d62afcd0333c46 \
--hash=sha256:9a6b95b1737f9b5942c35676c52db0c302d60fa806efde3fc2d9f54247ecf4be \
--hash=sha256:9b887e8a7103ae2171dccbab00a4bb2bf1560f5c10c28227e5513bc90a608cad \
--hash=sha256:9c1bd8321a840729a6b2620774cf4000fafe66c54cac9064972a10c4f607794b \
--hash=sha256:9eba4613d45b49196af04a5cbadfc5e9379ba94aac85184b72cb1107ad31af0d \
--hash=sha256:a094178c51530c9ebd1775e72d160af0eac4be244fb06ff1b6f182128c71903c \
--hash=sha256:a09ca76391f6e17b12d55c1068b4b5f8f6c9b44b432d936075372fa12782292d \
--hash=sha256:a250888753faa289e2997962fbb17c4960cbdb58575533ca6fceee68c224bdff \
--hash=sha256:a312fedd182357f2c22f066d17dcd7413b6a205ee3d063d36950e94e3019d3de \
--hash=sha256:a36bba41dc7fd263417688c4daf95a1091f93e1f6957c0f71ad7798907c5a10c \
--hash=sha256:a3f4044dd5d2f7b958be6b9903cb432e6a0fd944d673707ca5cab68137d0592c \
--hash=sha256:a43831574e14423103d69fb1357e76e4f2347041c98e8357ab88ef21812e80d9 \
--hash=sha256:a491d4afb361aba32d55d7df7ccde766a3aa9a34c002d2c32c2743bf6e77c13c \
--hash=sha256:a5a7e0326566759f9a7bc44f4b9a179cc40a297e09e759b0bc7c848c06347527 \
--hash=sha256:a6eba94fc00d899f8d268712772c8dcafc40215aa9b51701a397afc9426e012b \
--hash=sha256:a8f92cc9080bff47555c79b88e7fb8655438ce3bcf29c5f01ed2ed5efdf174a4 \
--hash=sha256:aa2476abf8669be493689634bdb79f468a6fe57b005a5126db7e9f61d1954fe2 \
--hash=sha256:aa8be1f24fbc03a07cfe002b70ba0716effc6b3011fd9e5560ca399d3d0605ad \
--hash=sha256:aa9390d89822dd06f9920ae3038819cb121643a72f4753b2eee1a79b2f1215f8 \
--hash=sha256:acaa0e100f39287dc5d13de96e33ba0786f1cdfb5b4ca28918913ab0eec3af72 \
--hash=sha256:ad1becd776f5a41a4d91cb9ee51778f4fd687ef15e4919779e00a33c6cff6948 \
--hash=sha256:af217012cfdaf6ea5dc0c538aac29b7bd030eb865056cc60f1d973b982b7917b \
--hash=sha256:b013417037c931583578639cab2523d5a2efc35a584c192d07f4c909b133f6b0 \
--hash=sha256:b0aa6b81bc632af7cac7b270c933298cb5ee858506dcf344e0da006667e0c351 \
--hash=sha256:b30e5496e453ac971bb17f5e096b84fbaae16d09e2613f6148ff528c08a54a0c \
--hash=sha256:b66a0e045cf859d7418f26a554509b65f21ebb6d90a95152460781939e8264f4 \
--hash=sha256:b6dad86d938104f9d43404029e5fc8392f82762d171933be4f192a6008bffa53 \
--hash=sha256:b6ea5bf7e3c39f6e56957d82274ac7cfab469590085883fdbc86e754cde76b11 \
--hash=sha256:b8fc4fe56992b089d6177021fe6db641321bb2bc2fc7a1abf815c29a80ca2137 \
--hash=sha256:ba26e4d073a4f7f2594676f2ff20ab80a7f03332b81c3f9964e9e53bf2305329 \
--hash=sha256:bed05639ae1bc23df7996a4fd13ea5064ddf60dc7dabd754f8badf060daec63f \
--hash=sha256:c08e06fc69750827d7ccebba63ebc97a85e479cd5c9dbdb80f5e08a77b774fdb \
--hash=sha256:c39a4fe28a16e8fa667c55c154f62c6c3cd9ca2491cca9f16330dd7360d05b76 \
--hash=sha256:c437ed8775d201d37206f37d233f547506e3aef60b9711584c65444c686b4905 \
--hash=sha256:c43d9737c3b85ccd16b1862b1e7aa5c4bf30a6033068403713c0a2bba5bda979 \
--hash=sha256:c9d1f467d121b33b06865c94ed5ed8388a9ef76f5e1acc1c8a854ac653493f5d \
--hash=sha256:caefc441edff6070a9f9749ca880a22731a1715d9e74b24304a546eec44bfc16 \
--hash=sha256:cb18428af7399e0a6f7e3b45f110d57a1a47cf07fd4b3ce50e2366d99a38959a \
--hash=sha256:cb4c25a9d3410262216b5c7447e51bfd2de0efae0a7640772dc6d2a8741590de \
--hash=sha256:cbd09b22b340f846671e79e8d832167fac60c1884be4c71fd667211486a3b58e \
--hash=sha256:cd5422fd4f8a7859846c9289e310dd95c0d1890c31819667942753e510f88f69 \
--hash=sha256:d12571adb9ceeb9ba0640db46433430062f5f1dec89e39713a2a5a8ce3016c37 \
--hash=sha256:d1b7a3fe4cf679eb3870b91b86b8ce12cacd5cf4d74bc114864a5cd65319ddac \
--hash=sha256:d313494077f849d8199f36166947785da1eeb36335fda15fde2e8f801ef271b6 \
--hash=sha256:d3c9d5284d64f4c1015d95b751577b260fd6d14e3f8edf21710f4436e7ac4c49 \
--hash=sha256:d4e7ecaa25f0dae672ac783c2e5aa9054a62e011749d64ff47b887af360a3e82 \
--hash=sha256:d57f1b6affc3581fbf0bc6d783cc60e7c9957adfd9c7b89f8a9f3573ad1cd49a \
--hash=sha256:d8f85e019c9f08ec134648a378ddd3f6f073c1e4b5ce9bdacd9a9e7b60749cd2 \
--hash=sha256:d93403a13c8f6f2d027185d90ab695e81d95e3ebd000f0078e201a1c3159d4d1 \
--hash=sha256:da606e3015dbd4b9a31c0468898a0c4c998846197ddfda78308821dc8c9e9be3 \
--hash=sha256:db2eedef732424346f98d0aba5c6ad688b648bc79847f4cc70dfca830130b1e6 \
--hash=sha256:dbdd407104ebf2360464ce02c7933c6ffac58bd5b64cdf6ef7dc0e787e782aaf \
--hash=sha256:ddea089587432e3df6771a4a405ef249cc9727f7becb1de3f00ab571b2432002 \
--hash=sha256:dfbde696fb427301ec40cd82b8eec0b528e44c6af8239f33ede2b2552d9a085a \
--hash=sha256:e1cdbde56f9fa6d426b78941c381e2ba160c1214809baa47e02c1d0d8881d598 \
--hash=sha256:e282983b8def5ada758fa1f18bf9060bb8ce6cdd73be32f62a2de59820d3286d \
--hash=sha256:e34f591669498a03cd70993b0a79b9f0ef40c4e6f8232466bac33c42f0c15742 \
--hash=sha256:e405cce4170de1fe520d9a92de9d7ececc23dfcf6888c62ab608a21be50838eb \
--hash=sha256:e4a0f2adf29a69dd8fe58e42bb191f3c87067b05fcc63279983e8c9ce5092abd \
--hash=sha256:e4f85c34f9be32ec5568a0668fb8bc029d3e729285fb8fccc38695e185379a9b \
--hash=sha256:e5e4785d8a0adeadfbdf75f4efc357911842674651cbafd7e97f69b11ec3cbc6 \
--hash=sha256:e86a27ab632d2e888c22b79263864eaff8b7dea9e87328a9bb0ea04eff24786f \
--hash=sha256:ea880ae1a692ae694c11bca7be74864614ff1a58bdfff4605f36d1956b4b1588 \
--hash=sha256:ee9de080e8d6221bbe4ba2667367b1cee0f47a53f60ffc5e431b698cd2f2b214 \
--hash=sha256:ef8b925f2b331a1f17d6fb32625e09fd571cf41844f578379f934dab0067cf0d \
--hash=sha256:f06e257ee0cc85a7e4ec44f171ae2595fd901c34212f3c9e7ab8fd8621401e99 \
--hash=sha256:f1214052966421a88ed526ba93e4463b39346862fa4721be5306434b33dae795 \
--hash=sha256:f160f03e15bd1e3c35db9bfc20c42ff83155d37f9b0c79806cb10051ca725f13 \
--hash=sha256:f1b357340e4cd29011683bd81226175611ad835fec22e5b7df83b96701571226 \
--hash=sha256:f39290a0c2e3f4196563189bb45e6ef5d5badf50864e1bfaafa9003f0595573f \
--hash=sha256:f5a5c311e5de6954c36230a37863b5ca58ce232589bd637ad2881c4056897b12 \
--hash=sha256:f7a841170fde40b0e1345884bee09ceca7db49a9291fa340089bec66a366c243 \
--hash=sha256:f7fb9a3275f1a1528e542a0f5a3d2c89fcaf68e797fc5c6530434cbd92a852c4 \
--hash=sha256:fc540d1618c5638fcf5aea97060cf011467918b010bf682a84ecc0c9474e6cd0 \
--hash=sha256:fcb17f1d40c38912a2cdb56ea47aadac3527cd0b06fe24f3a0c4896febbea063 \
--hash=sha256:fd0341b9dea133d187d7c5a2cd7e21ae6449a7b68ea8c2454f9cf77def11ec1b
# via requests
click==8.5.1 \
--hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \
--hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4
# via molecule
cryptography==50.0.2 \
--hash=sha256:0ddc924c04591c2811ca024d62ecad4f7f6f08af8939c211438f48a16bd23602 \
--hash=sha256:0ec5f09541743261e66e291b4a0cbf0fb2997aeaab6d9e9c740b9dba1b58d1c2 \
--hash=sha256:0ecbc5652bdb6fc9eaf89a7d196e20941adfe812f43bc4ca05d9150496821047 \
--hash=sha256:1981f1db4630889b9ef7803fadef12b056f428cb6b85c27ba57b774793b6093c \
--hash=sha256:1ba34f04897fcdaa73f74145c25f3ec146fbd56593853e88adc2e811303c5f42 \
--hash=sha256:241449bf940a5d27309bd317e6f9a2af6932113818bb2b8f5c59ddc7ef16da18 \
--hash=sha256:25784ce8b9621c90c643efb9e1e2162ab3b0224cae446ad5e70e7fcb1ce18b51 \
--hash=sha256:3dc4fd8058cea1644971207d530e1a03a184a805ffc8ebdddf0599d78a331b81 \
--hash=sha256:4061c0079120205fb760c58acab6443e217307dcf05e3702cf970e0689972856 \
--hash=sha256:4a20ce1e5cb4284a86692fdcba7cb8754185c6b2e5c56fcef3751cf451d3cdc2 \
--hash=sha256:4e81d95e5bafc2d6e34e4bed780e53e4d5b9a2f928573428aa4d35fbec1eb0de \
--hash=sha256:58a0c478eeca76fe5e07993c5a0703def34a6dc6a0cda4f5564639b33112ffe7 \
--hash=sha256:58ddb5a8e3179d12f19e4ea34d2d32e9d63a4baa142c875c1eb59f41b7243acd \
--hash=sha256:630ebfea3bf689d075f82316324ff7433dc447fe6bc1bfc76524b74b4a9567d2 \
--hash=sha256:6f8700550aa1474a91e5dc07049c46f98b423b5b1ddd0483e0b51362eeeaf5be \
--hash=sha256:78198641e5be9521beea5aa782bb551a58068d10e6eb04c9c680c1b69f2e7d45 \
--hash=sha256:79def8d059362e7831389ed3be0ecdf58a89386e1271e35dd9f5af84e81bffd0 \
--hash=sha256:7a8701d6b584d76e909e3d305b7d126b41439876a5aaf76cddc67fc230eafa2e \
--hash=sha256:7afa5a6602a9f29af1f3a2965f831bae7c9d5d597b7cbb716d41ab3b7d89879c \
--hash=sha256:7b46165bb56eb4704e2eaaf86f3c940d19154535d9b0ca7d6d590b04060e00d5 \
--hash=sha256:7b75de3c8b3be1cdb1052747c929440c3eea46c1bc2cb8a6e3a48388e9b7b452 \
--hash=sha256:7c6d0330c472d96f6a6afe24d80dfdf15176c33096f0a4397ae4c60f3dd3be48 \
--hash=sha256:828d49b0ff5a0e3975865571c5d91dbbdd0d38d8289b249a163e9425413a5e05 \
--hash=sha256:84f964e537f916e2cc85199e5a88742e964939b575ac8598b3f9d6cc416cdaf1 \
--hash=sha256:85d0d9a31b9098e98534226d5686b47264b95e62ce459dc2e62fdfc809f9fe93 \
--hash=sha256:87e9ce85beb6b328ba370cc6e6aea483c92617b4c95b1d33a49297eb662bfb04 \
--hash=sha256:8c71ba2cd31fc93748c38e1b613200ff1c2665cbfd5341fe3a61cfde35a1430e \
--hash=sha256:92e665960f25fcdc73725b9cec7a3824f279ba97a98653afe9ffac2e43668f67 \
--hash=sha256:94e5e9f108ee10471288214d3d233fbfbb492840a8457eb85178d643ddeb32c7 \
--hash=sha256:9c8402a82ea0dc4ceeab793db05f0fafa8ca139ca34fcde5df0f596103c74107 \
--hash=sha256:9dab55f57c74c3cad24c323bacbbd04be4705ba6eb0d92e920b1fc4837ed5079 \
--hash=sha256:a582ab2ae1d34f67112cadc86702774c9ea4374df6bca6afe672817203c99134 \
--hash=sha256:a6557e5f38e065ca9fbdaf7cfc7435ecb1d113aa81a022d1b51921ee7432e227 \
--hash=sha256:a9f7355e6fab51f6c369b86fb7571cffa05edee2c2121e0380a37fb9ac1cd5c1 \
--hash=sha256:ab50ee449bf968271e820086f10a33d101dd060370abc10bcd22279be2656539 \
--hash=sha256:ac9ed99d81760c62fe89d5f0815cdfa1ba9a35141cf30f1c2d044f04b4803d2e \
--hash=sha256:b13478603dcd0a2479ff8e87e2c19a7d525734686fe3c49542472293a204212d \
--hash=sha256:c423ab384a46c4dff7217b2ea5ba2e11cffdeab6441acd04cf65a369caf0366c \
--hash=sha256:c5e67125c7dca78d199ec4e116aa93dbb83494808ecbb8211a2cb09b1bf41dbd \
--hash=sha256:c71be1cbfa5cd9a41ee452acf1eccd82b2c05950358b106ec8ceb83411d1a020 \
--hash=sha256:cbc8738fd8526d80f35cb3a40d41f41a2e7030bb3b18b09a6778ef63d291c2fd \
--hash=sha256:ce47f66801c20ec6c6632453bb5960fe38939e9306970b48b3a5a26de7745d94 \
--hash=sha256:d370b8d1dfcdf7130178137f6fbee6140774a1acc6cacefc4b42643ec11d0a3a \
--hash=sha256:d38cdff612d06fa6a32840d5e1b1f7a27cee4a349aa9085d94a67789d6bfd408 \
--hash=sha256:d8947001be83df1394050758ce0e745dd74fb134eef0a4b5124208dfc3a68c37 \
--hash=sha256:deb9fde5c60e437ee4821bc9bc39ff31b42135c27e1dc61ef0a629389c1de62e \
--hash=sha256:dfe9763530994147d9af1def057a5b9658b00e8f8fe8743d144d1e0911c2e454 \
--hash=sha256:e105ab60406787da31fccc883fc0f733af1efd78f0136a4599692c4083a73d0c \
--hash=sha256:e275096ea1e60cc595cda2836fd4a6c725d1125108b868be17f53684d164e2cc \
--hash=sha256:edc3342adf8f697fc5f59c887a304356f147b397809440ed64e2fa6af2f50f37 \
--hash=sha256:ee247f5c245c9a2fe7c8e2214e295918838e44e00a45a6718451e4004219e767 \
--hash=sha256:eef4c2f3423810b3070ab391f85436d2f8bbfcb286ac15cbc73190b3563b1f1a \
--hash=sha256:f21e8a22c8605750c7af886bab299a363721264061b4ac0a30efb73cfd58efc5 \
--hash=sha256:f265528741e048bce55c3463ed721fb0aa45a5888d8add8cfeccb3035451bbdc \
--hash=sha256:f2f9bd7f90c64fe89253f0a2c05e3c4856072660429ce8831b4235bf29403a67 \
--hash=sha256:f785f6161f202ab04d8ca194158968798e480ca058943907972da5f12e2881e8 \
--hash=sha256:f9f6143a8c75945eb960d9eb98905a441394abfa24afaae239d514ffb2586480 \
--hash=sha256:fa8f5efb344d6908a1ce62f4a24e2e5780f825d6f53f5f50ec5ffacac72936cb \
--hash=sha256:fdd28f912fccfec1846a94e2e1e8f9b0012f557f0c46fe4f3eb0d7a87afcf90b
# via ansible-core
distro==1.9.0 \
--hash=sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed \
--hash=sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2
# via selinux
docker==7.2.0 \
--hash=sha256:a3f45fdeb9165e2d25d9a1d02ddf3bc70fb572cf5ebbf9b58558c22caf29b71f \
--hash=sha256:cebb93773d334f778e023a7ee352a8d6e13ab1bd3b863a4d4a59dec897df43ac
# via molecule-plugins
enrich==1.2.7 \
--hash=sha256:0a2ab0d2931dff8947012602d1234d2a3ee002d9a355b5d70be6bf5466008893 \
--hash=sha256:f29b2c8c124b4dbd7c975ab5c3568f6c7a47938ea3b7d2106c8a3bd346545e4f
# via molecule
idna==3.20 \
--hash=sha256:a7db850025b95ded1eae8a46181a1a6c56c92c96f0e2b005d9ff8dc0210cab44 \
--hash=sha256:ab7ae7122974553370f0bdb919e1a960b2cd1bc1ef0276416d896db81c14582c
# via requests
jinja2==3.1.6 \
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
--hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
# via
# ansible-core
# molecule
jsonschema==4.26.0 \
--hash=sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326 \
--hash=sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce
# via
# ansible-compat
# molecule
jsonschema-specifications==2025.9.1 \
--hash=sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe \
--hash=sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d
# via jsonschema
markdown-it-py==4.3.0 \
--hash=sha256:7aa1511a46c39138de78d9eba92ce47e63124d8003fc98b3a351909e04239efa \
--hash=sha256:91a58fa5b72c71a40cf7177250fd767480d7a2bb3ac426ccfb76fb90305fdaaa
# via rich
markupsafe==3.0.4 \
--hash=sha256:007e1ffd9bf65bb6ee96df7b258fc632a4868dd5566037986c64781f35a36e98 \
--hash=sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002 \
--hash=sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b \
--hash=sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653 \
--hash=sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c \
--hash=sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e \
--hash=sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc \
--hash=sha256:0764a13d34cae40db7bbf3a09b7e9b491bf4603e20b263a7a9d6b8e324975d0a \
--hash=sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92 \
--hash=sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f \
--hash=sha256:0cee7cb0f9a1b6892ea482237d9403b3d1b4603aee057d0ff01f0fac2d019a97 \
--hash=sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4 \
--hash=sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7 \
--hash=sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691 \
--hash=sha256:14bd2d845d62ab678eaf81da89d7b621b51756c72346745c1a594c09d49207a2 \
--hash=sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc \
--hash=sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde \
--hash=sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99 \
--hash=sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9 \
--hash=sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df \
--hash=sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5 \
--hash=sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17 \
--hash=sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8 \
--hash=sha256:2a6ef68ae94aed8721934072b27a3b654ea2100b97e4ab864cf1489c90926fbc \
--hash=sha256:2b2b1e18af909b448bb3cf9e3433366f7a8726271fc214e8b10e0f62a78c724b \
--hash=sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea \
--hash=sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248 \
--hash=sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741 \
--hash=sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5 \
--hash=sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6 \
--hash=sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7 \
--hash=sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1 \
--hash=sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67 \
--hash=sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f \
--hash=sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9 \
--hash=sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c \
--hash=sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc \
--hash=sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba \
--hash=sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17 \
--hash=sha256:3d23795802fc8bd72534836d64489bbf0f67c088959091bdb22e10735a5107bf \
--hash=sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6 \
--hash=sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2 \
--hash=sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163 \
--hash=sha256:4a540e2d3192792fc84eced57bef37851ccb2b41f73291bb17408eea77bcd278 \
--hash=sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d \
--hash=sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b \
--hash=sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634 \
--hash=sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38 \
--hash=sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed \
--hash=sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c \
--hash=sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148 \
--hash=sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a \
--hash=sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7 \
--hash=sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f \
--hash=sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811 \
--hash=sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e \
--hash=sha256:57f9947a7e57a081c1e3e0a2dd0d2dcf290a4531450e6f611e30084c222a7295 \
--hash=sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2 \
--hash=sha256:5c22873ad1f0532ba40fa1727f3c0fc1bbbaab6d373d4cbe3f0dc74b2e2521c7 \
--hash=sha256:5e8b3d0b18fd623afa12ecb2ce8d8becef69f9b5440c6330c7972200e0bb84b0 \
--hash=sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6 \
--hash=sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed \
--hash=sha256:6669c1bf34080161ce49c589cc512ef24d4c704ac9d2b2d3667f519c60418378 \
--hash=sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0 \
--hash=sha256:6768d67d1bce64270e0fdc2e69309d68b9b18ae56ddf6c711d168e9d051c2cac \
--hash=sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b \
--hash=sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96 \
--hash=sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59 \
--hash=sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808 \
--hash=sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2 \
--hash=sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb \
--hash=sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65 \
--hash=sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72 \
--hash=sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8 \
--hash=sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e \
--hash=sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91 \
--hash=sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a \
--hash=sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2 \
--hash=sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e \
--hash=sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707 \
--hash=sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21 \
--hash=sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef \
--hash=sha256:8698d70a8081ee8c090dbb394768b5789a1da8b131b5499f89d071dd3cfaf6be \
--hash=sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453 \
--hash=sha256:88d59b473bfb03259722600839af9bbd7fa13a2eb514beefeedb95997882f69a \
--hash=sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6 \
--hash=sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977 \
--hash=sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978 \
--hash=sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581 \
--hash=sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692 \
--hash=sha256:9240187afb63d2f9ddc3e032c670356fe941f6e20662ea168a5dc3f1f317e1b3 \
--hash=sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369 \
--hash=sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a \
--hash=sha256:9388003072b95f2f1e3fd908604194d653ba21330d811961a78b7da1a77e9e36 \
--hash=sha256:9438a2648b2195980cb2dd8e53ed7b8df91319e2d0b70ae61a9e1d1bc8d3bec9 \
--hash=sha256:94e4c421742086aeee4c32a506eec8859d7634aad943f7e6aacf70f813478768 \
--hash=sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916 \
--hash=sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b \
--hash=sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f \
--hash=sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346 \
--hash=sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c \
--hash=sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464 \
--hash=sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9 \
--hash=sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee \
--hash=sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300 \
--hash=sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6 \
--hash=sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d \
--hash=sha256:ac0c7c9f1609b0c4c114feb1d7a3409564c7fb77e360bed9e97e5d25dfeaf868 \
--hash=sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46 \
--hash=sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97 \
--hash=sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733 \
--hash=sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe \
--hash=sha256:b61687d0828e72bf5cda24a2690188f37170bd31c9359ac97e4e66569f120a16 \
--hash=sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429 \
--hash=sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39 \
--hash=sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894 \
--hash=sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c \
--hash=sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c \
--hash=sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169 \
--hash=sha256:bf053da3c97a4bc5ecfbb218cdd2983febd91c617be8367d139882aa11e490aa \
--hash=sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77 \
--hash=sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe \
--hash=sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad \
--hash=sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85 \
--hash=sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e \
--hash=sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34 \
--hash=sha256:cf63c214fe879a65e69a386f915e36104fc84254ab141240f8854602d8e0be2a \
--hash=sha256:d1aca03ede943eb80ab3d63bb082c84b7aab85ea83bd0fd0c200260945fb49d9 \
--hash=sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c \
--hash=sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749 \
--hash=sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214 \
--hash=sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932 \
--hash=sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494 \
--hash=sha256:dd8ea6ebee7aedbf7c749fa80521d9ccf1ba473e0d1e14805caafbaad281c889 \
--hash=sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1 \
--hash=sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0 \
--hash=sha256:dff05cb7016dff1e9fd68f4122c127b65dfc59de5306cfb7ad92f956f230bee2 \
--hash=sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786 \
--hash=sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78 \
--hash=sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e \
--hash=sha256:e841068dc0be4cb6dfb5c890eb88cbdcff2f4a332393c7ec94e8e618bd32c1a8 \
--hash=sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289 \
--hash=sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c \
--hash=sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe \
--hash=sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237 \
--hash=sha256:f291bcf42ae98eb5107edb162c3c998b4a89648fd8e99ed4cbd12705292788cd \
--hash=sha256:f61efe1d2fe0de16158a5fe1d1cf3c14bdb6aecd54d8938fd26512c525c1f624 \
--hash=sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19 \
--hash=sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977 \
--hash=sha256:fd9f8797427910198f95bced71ddfed61130d7e349213bfb8466c9c99e2c46a8 \
--hash=sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3
# via jinja2
mdurl==0.1.2 \
--hash=sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8 \
--hash=sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba
# via markdown-it-py
molecule==26.11.0 \
--hash=sha256:5e48f66e97ce03ba1e9cfdf4a3667db499e960543c91bb62f530c6cd6337dd9b \
--hash=sha256:706bb3d9a34e1531cfe1cda294974aad4ccba70af3ecb2d434266e0df73b0c09
# via
# -r requirements-molecule.txt
# molecule-plugins
molecule-plugins==26.11.0 \
--hash=sha256:194be2c43d950545cc699ab19f1a55b26853809e6e8c855ea1a42edacf5c7ee7 \
--hash=sha256:513808288b7027c465b124e66a2a31002c7c907b2fea9002f63ee90bb2d0ef84
# via -r requirements-molecule.txt
packaging==26.4 \
--hash=sha256:81383611a09c1bc0b08b76e0fd5829d7c6824c65b27a6aee339da133f4233ea2 \
--hash=sha256:c4b671c41ddb9bf26e543c37723610d28fb6bf7affc4da17cf048d419d2c062a
# via
# ansible-compat
# ansible-core
# molecule
pluggy==1.7.0 \
--hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec \
--hash=sha256:d1eaa46ebb595891b860ab086b4d09c8588af65ebd4361b8e8f4bb8920b90ba8
# via molecule
pycparser==3.12 \
--hash=sha256:a076f3f489b39b43ed13563a1dafe42447445bec2e294154ec5c57fcdda4c85e \
--hash=sha256:f03387877eab82ce01bbdfd0ba7252ee55a90b1c708d5129e2ce915475cf1db6
# via cffi
pygments==2.21.0 \
--hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9 \
--hash=sha256:610ca751c9bc2492b38eb9a38a7fbc93edbbb2d7182edaf34e66ae493dee5c8c
# via rich
pyyaml==6.0.4 \
--hash=sha256:070c22b6f490d6cc30912be9fb9ab1af9c752769b39b53616f6510c3f038ee6a \
--hash=sha256:0a3a351f04dc124f9357512bdb80ac37cd1750cf1371da33e7cbb96d80ac865f \
--hash=sha256:0db75f402e99c25239003a499c214a61947b4ef5312af34711d4c63e5c179318 \
--hash=sha256:1088ad740f50c13178dad16fbc2fa1f634c791d42c7009fdb390e38e5b90b788 \
--hash=sha256:12a155bc41509d71a2eb73e2191d9e400c1345ea99ac3d9946c31f40a4c840f8 \
--hash=sha256:131d11bd9b60d705a6388366d77ed67850995a4d2be85fe149785a257c17e531 \
--hash=sha256:132c3c7c37a8e6f334921b05cfea5d26e241d792dcbb4db0462129d25ca53b43 \
--hash=sha256:15c52bb238a15bb4fd7e6342a5ac71d594507667c7fe0e5a5abbc0f6875d1e91 \
--hash=sha256:1631d566655f3af7d6c4a4485267830f6b680d3dc9704b659b3c3f4541b5a3fe \
--hash=sha256:180ac792c958c2173f6e4467c55ae5f73ab1a9a624ee29fc7095c56d5e3a4055 \
--hash=sha256:18ea9bda247857fc0de05181675dc116b54c1b04ca3db71de5d2108c882823b7 \
--hash=sha256:1d2f08c122727c86f8303bb1dd45159ca1de1f2d68798e671ec46974e321008e \
--hash=sha256:1db4d51d3c2c9545dd44c614febc4594240754f74b30d8e501415b118347f0d1 \
--hash=sha256:2018fda285d1289527a389e1b4ace1e2d3af410930f949136b55ecb0747744d1 \
--hash=sha256:2c11be5ab4d9f603a598b5ce93a2064ae38087bdf1b384c5397170054cda4e36 \
--hash=sha256:33506a2620f0e7c49858f09cb44e99f144878d03af3d9c10aa136e9a1d103bcd \
--hash=sha256:34edca7ab64b705ee7c80bf3f9ac609240677db11e83d9317191f483a4b5a433 \
--hash=sha256:3c7129bcee5c88c1450802cc6a95b690ee7c51bfcc7a9b60bbd9549a7a4fcbe6 \
--hash=sha256:41b4669c3a8fd5750e594dff59d3e62d40e321fec467b50449603710ed0a68f3 \
--hash=sha256:45e37dd647db9d67b757444c74060c064ace5fdaa08f42bf4fda3812275d423e \
--hash=sha256:49e38a95e24738908ea852e61df0abc58d1e4d4f974ccdb2386eaee412bedc67 \
--hash=sha256:4a2a8f27d24d4cdc05aa11df5f4c08e13f30d9e6674809b6a5ddcfcba49a653a \
--hash=sha256:4a329472db6c8858ebd94f2214a54c8bff8f035a6cc7af1ab39cc1b33a5f0e56 \
--hash=sha256:4d1e8d6e345b4b4424a05a11e699e999e65a88f422f73636f8a0b354bf219ffa \
--hash=sha256:4d30c2f186612bd2f9f07c08a4c96721af59cfc8da3ec7cb27dfa2834e8bb019 \
--hash=sha256:4d3bbc5e8a84a5a6775adecac786f489510a7159b1c343d6f31426d888cfdd6e \
--hash=sha256:50588147ab2c6a59b5f990a4905db80899a6c2bd197e046a6201f1e67587e794 \
--hash=sha256:52460c6dd874b22d49fda228fac59da74d7a7b06175ffcc80bfa3ba5389d7f73 \
--hash=sha256:5246a0feaaac497b09c9462aa926280ae02fc8791b0099c0a925ebd7c7f249a6 \
--hash=sha256:54c23934cf166bb2090d73d82b1388aadb1cead5e73885223dcfa4a459a22d43 \
--hash=sha256:573debb9fe3075423d4f823795a678580e597218c25baef178d532b124a25a25 \
--hash=sha256:609e8efaffa5662da16b7d53eef76fc4eedbbe56fce5829b67ba808a6e35d399 \
--hash=sha256:60e9da2772e259307650e03c24f50e3bc2d9fa5ed1ba44c47582e13b0e7708d1 \
--hash=sha256:61eef2f08e977b725f37a8d1663f5a222c6f09207ac0794030d5fca062e7c96e \
--hash=sha256:622aa875fa6533f25fedcffe23079357d65a690d462200afed5d8e9d0e01ebee \
--hash=sha256:62c5b5669b05dabf991a705f3a3601f57b65e95121a1d3e3a4ae4446c8632865 \
--hash=sha256:67da066ca12eb60114ea87f2ecbcca622fff0c205c743cc900437127564fabf6 \
--hash=sha256:69380d4bae12aab2a2c9532deff6a2841bc9fda47c333691bd2368b696301768 \
--hash=sha256:6ac167ebebc0c387290406a337b9b5c8c343fa5f7928d5941e45a94b8ba3aa39 \
--hash=sha256:71bb5b87465d88d1dfc577115af6d435bff9b26f2512936f610c26aa55966028 \
--hash=sha256:730788375056c43d3ac15bd894c9cd2fb7a931a38b302f408620c64b3ef176ed \
--hash=sha256:7335809813ec838d9cd334b1744cda33deb141c9ef23a9c0df371c37980d3851 \
--hash=sha256:78be5a1b05a5d1fd46d0290393e5deeb581fa617585462c1b84f7c6b0cb1e489 \
--hash=sha256:84e97378010f3da8daf673b82d39ed638098d236a1b760d61c0c1348a642bd70 \
--hash=sha256:8708f6ab9c2581ffa05f66dae3206bb0385949650537d7295fc7ab0d6454dd70 \
--hash=sha256:872d2a592289061c1b987e335b3568a2616b474be02bd0608d8f551a385441cd \
--hash=sha256:88a089e6424a8a256321270620d5a4328ad5227fb2061b07d33f596894336914 \
--hash=sha256:8e0cd755ce5e9009fd95f9c553e5942478feb8f7dffa19435641fcdc3c20e8ca \
--hash=sha256:914b19e17814315fbcca52031bf79b68237f3d87a948c584a667b18b468e4df7 \
--hash=sha256:93bfb2459195406a518e2f487a9bbf01df240175f31e06f5a252ac6734c7bbf0 \
--hash=sha256:93da48af92c84c4236578e330a514ca324362c0bb62894d8d2343363ed57ff03 \
--hash=sha256:9d4211f080920629a90c9e31c51e326fb70cfae38f18d4128b9913c23642bace \
--hash=sha256:9e7ec9dc75cadd392fd687cc9b8ccf7dd59ada0a991e0d14ae0fad9ecdba00c3 \
--hash=sha256:a266cf55ee5cf63c1803432a61c6386e750e0012ca49d12d26ccb0ffd80b343a \
--hash=sha256:a3cc63af3d639d1609143711837b926183418260aae89ed95193c07b25b99d33 \
--hash=sha256:a56491babf0d976625807953bd192dd9de973fccb3270e77b1a795b152a26175 \
--hash=sha256:a65339c24f2fb8d4419e06ceec1bda98bdcff727b3b533a81d5af6bb2dd34520 \
--hash=sha256:ab874ebcc5c12c31c859a9e9fe159d688df1f7a099818ef8a35906264a8f5d6b \
--hash=sha256:b525488d5addf5d59ff4610cd8b1deab9dc97fe0fb3fb74533d7f65e9792bd92 \
--hash=sha256:b9fe0b8c65a1611053eb7fcaa7c022f655b7eebeb0ea034572615453cae6b843 \
--hash=sha256:c0d68d972f6f6417b4e85e9522f3d57bb4fbc924379766ccd87254a31009c1cd \
--hash=sha256:c24097c0462f66358c99dc83d3e1850e005f6293cfa1df1edb243428da1668bf \
--hash=sha256:c57e40928738c4a202852759f9e1ee2c7063429a9469ee1ac15651bbf7d69963 \
--hash=sha256:c604dc2613c417130479cdd6e55c2faa691b6365aa82b3dafddfcecc2eaf1ac7 \
--hash=sha256:c680622f85979f2ff59b4ae44c1ecb5566b2f0f0ffe5d0dc8b4bb6a0e916dabb \
--hash=sha256:d276f23e2371deb5ee68dd252cc9c2402b806b54d8d2cc7efbb6c34c3a78d886 \
--hash=sha256:d58fe9fa2056fed24f055b74d5dc808fa1f5d084c22e4118f0a08253fe677ffd \
--hash=sha256:e24bf71af8a432d7808fabff134d38dfe16d3cbb41f2873bb4b1e42422de0a1a \
--hash=sha256:e39017e1cef43d03b2ba427f60213e4b36dbc6fb092235fa3de3a510ce064d3c \
--hash=sha256:e956541cc7a3fff2bb5b17aeb6c5bb42c86c8e6dafb5ebdd41a05e72e702076b \
--hash=sha256:ed9b957abb12f6ffcd92d5db32fa3ffd4e4a8423d80ddd51b4efa63b42f6a76b \
--hash=sha256:efe68ed09903cca9ab4117c2b9ea6ee8d369818808945bb5a7fa8009b5630b45 \
--hash=sha256:f1a4a85b419f5cb6470dd4be5f766bc59532f11b9c22c076b58a0348f05dca5f \
--hash=sha256:f5c410f9e2ffc9286279a46f2e8c107edaf3b1123510af59c828a9c15b23c9db \
--hash=sha256:f617e4e5c619fef5284335b24e3af3a77ce08dc5c389ff4b25033bb2749032b7
# via
# ansible-compat
# ansible-core
# molecule
referencing==0.37.0 \
--hash=sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231 \
--hash=sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8
# via
# jsonschema
# jsonschema-specifications
requests==2.34.2 \
--hash=sha256:2a0d60c172f83ac6ab31e4554906c0f3b3588d37b5cb939b1c061f4907e278e0 \
--hash=sha256:f288924cae4e29463698d6d60bc6a4da69c89185ad1e0bcc4104f584e960b9ed
# via
# docker
# molecule-plugins
resolvelib==1.2.1 \
--hash=sha256:7d08a2022f6e16ce405d60b68c390f054efcfd0477d4b9bd019cc941c28fad1c \
--hash=sha256:fb06b66c8da04172d9e72a21d7d06186d8919e32ae5ab5cdf5b9d920be805ac2
# via ansible-core
rich==15.0.0 \
--hash=sha256:33bd4ef74232fb73fe9279a257718407f169c09b78a87ad3d296f548e27de0bb \
--hash=sha256:edd07a4824c6b40189fb7ac9bc4c52536e9780fbbfbddf6f1e2502c31b068c36
# via
# enrich
# molecule
rpds-py==2026.9.1 \
--hash=sha256:00ba2d8c7dd4ee537978ddf4b3fbd712bef2d8751603f7f3146b3f4287768e25 \
--hash=sha256:01445c8d194aa032a08e944f16567672da1c62dbdbefd8b6d0693032e290cf68 \
--hash=sha256:028ad274ea951dac64491b5d1e65712a4aeabfdbdb9fccf797b57bd899b0c495 \
--hash=sha256:0483515261947e4e8b8e1375bf7463e7eb6ccfb3d86e7b554d90cd5285f20f32 \
--hash=sha256:068c37bba854ec2fe42f7365c640af11dd9895890ccbf2df5070d0c059bd7f96 \
--hash=sha256:074a4d198bc34d9a8ea425114fc3ded6d11ec01f6a314a8db67454a5152d8834 \
--hash=sha256:07deecbfce94c78473018bc7d10b337cc651d12df87a1eb2cb3e4024bc9c33d0 \
--hash=sha256:08dae4a4095150a7c4545a1fb40b98e1ab1744fbc2770d92c977b9dadaa49ab6 \
--hash=sha256:0da298fb372dc192610a4b9ecbc68a0cd8b675bbbd1fc519d01b41cfd658333e \
--hash=sha256:0f045bb053c9057720d72c56dffe30dffdc05997b2897a827b9325f0ab6623fa \
--hash=sha256:10e208f2425d973938afcd56e28a7c4be32e27b6a60b5d381f49fb9d8acf9759 \
--hash=sha256:136a1c3fe4402b7008bc81cb62ee538481795b61a7e83df88dff3b3f02b726ff \
--hash=sha256:159a7aab5c5e8b112c8830f54717ce56da1252ebdbb526f5be2df2309280b9e7 \
--hash=sha256:172e47169583f46ce118cbec68e6795d0da0f4606b488b6434f8276bca0a058c \
--hash=sha256:1c2d1f6da5128eabf34e963d7163a818846075a52568250d006c4c953b40f903 \
--hash=sha256:1d55198263bb51f557550c6ed2e6d1cb6a6fed6eb5c9120b741c5926bef8a45d \
--hash=sha256:1d77b649e6f7cdf12ca5c2a98dad0ad37f9ea9b6f960408a92f0cb12bb3d04d9 \
--hash=sha256:1e8d4d79d828299bf44a55db22a9388ab967b49d17132c88eab0f4360b48da8e \
--hash=sha256:22ffd29a63d71fb1b81552c21f2c2b734949b7ac751a9be70675a939a900839b \
--hash=sha256:2693b2728bbcc48d09a981a356954b0c47c53ff25b545856f28a889ea619f69a \
--hash=sha256:270bdcdaac5d5b6f73c5e22e7e135c7f2a50e789f71d9e241d5be8d90026e19a \
--hash=sha256:2711d29b653b3bce48a63d18b9c6b53274669e6d6c4094dddeb4d9a0e45128b2 \
--hash=sha256:2c16ab111bc27c646ba8aa005d0527754edc538ebb636f0b1bf8e244b48d1945 \
--hash=sha256:306ee1850d8105b5baf977e78d45fcadd12c1a54678d614c9baf217708446e91 \
--hash=sha256:3231c4c0e521dafa5be0c9f114ee2c2ad46650836f2d72caa86801950c3e7044 \
--hash=sha256:3890a6aa36e6baa53d5258a2a25d3ef8b37ad165a6ab27a892d7c3e3a432cd69 \
--hash=sha256:3a72c11530d71abfb66c8d7696a2f86c43e63fca8b948f1a784ac490f4ec688e \
--hash=sha256:3b5a6f40f0a1486b4b36c888123afc67acdbd9f33235927acf5ff295429a0ba3 \
--hash=sha256:3c91c210ae7645626c608400e3519b4a642f837cce09ca830db3beb2e9f274d4 \
--hash=sha256:3cd182d7291d29b92c521a0069d9c01ba6193628a9a105531d11b40a6d731a33 \
--hash=sha256:3e524c7874ac72884d28e16dd5b8d839fd09e0fe76b020d3fbca23212a7b8c52 \
--hash=sha256:3e93b2cd69a9830be33e03945cd7cda940a0a8bfcfbff41d6144f0cb0d3d8bd9 \
--hash=sha256:3edae8c5ddfdb6985d49ae9d150516e5076888879022f91a26c2de9276ce0bdb \
--hash=sha256:3f0e9ac28fc067d4d34b88ae43c48e9489455c97fee9633d851f7eeed5a05d35 \
--hash=sha256:42e75466f83cd43f6026c81eab74246efb2bdadafb307b85700632d06c68f299 \
--hash=sha256:44b32a7c4f0da3d28af31c259e38ddcff096f855e205ed0671d02fcf44f1ea1c \
--hash=sha256:457866b85daf5034296666168b84a69e0b2e89dc4f1af102b46f6448a60b9063 \
--hash=sha256:45bc6bccf78b20fd834237d18db64965d7ee68ba7f60440a26c7ab71e7b8d51a \
--hash=sha256:46d80bc76b51a6c24f9944368c28d38b8bcbcea1da4f2f8d3ebc31a67e8c6ec6 \
--hash=sha256:4793ef7f78268b124b73fa933440f01d258bbae01de9fa53e9080c9ab0425a12 \
--hash=sha256:492e5e428cbe126221611f47e068f01660352feec4ad18bc0f5ea9b2ae88fb14 \
--hash=sha256:4b26b03d9d2658ee2fa234f8f4f19f38a09773fe5261028025032e26d4d35af0 \
--hash=sha256:4c0d2cb595a420b34d5086db0add011e26e2c09d6a024afbac4228bf8f863a30 \
--hash=sha256:4cfaf02209061880210819934de2f4f6aa83dc04dafe6770276acc240a56da31 \
--hash=sha256:501909f2e4a1e2dee528ef766fe3c469060ebc17e54a8383d404ba07a81a6f02 \
--hash=sha256:50906f5aea24b5a865cbd0a589698288631d9f3a54c3a937c83aefa95a0d14af \
--hash=sha256:54ac2158a6f96cfbabff0b2eedaf94b90c5ec7ca8317fcadc61e1c2b2e0ff6ef \
--hash=sha256:56c6952a9b15047466d0c2347c446a761d4527f89976156341e68f0ce5cc08b0 \
--hash=sha256:56cd8b3f77d7b6812f533b662186a1f28316931166ddc00fb893b1b0db7e9888 \
--hash=sha256:57492a550a1d88d29d003247e5f78dd8cf04a701fac0e4c8db8745a6d2504e0a \
--hash=sha256:5943980471829f6de242a20b109de3111ba6b77e3af0ffc587028ac854b05e6c \
--hash=sha256:5c6ee90dee3e85e055ddfd502d611643d9b0fd94c818220bda84ec3dacd9b27b \
--hash=sha256:5c90e7fa02e8f5de0d10c17595c568ada48c5302e749462c0ea1a4c362111a86 \
--hash=sha256:5ce8943f79c2210f7abcc28e86367b03b28d95027fd01c46d2472373ae70c86f \
--hash=sha256:617f59cde379b4f648a09797b7f683d04b90a46344cddab85639da5aff0f5531 \
--hash=sha256:6307a0da524939decb8ca4a3933b8ab62525794411d6984fca6726e732804af6 \
--hash=sha256:684fd492fff4fead00587544e059be2bbcb6f93454f21fa2a91b66fc7508be82 \
--hash=sha256:6b5b393eda5ea42cca1c1a6665f2a4882b4fd5d1777e41ce0545a107fb008c9d \
--hash=sha256:6b723eb406dec5bc9ec516c73ab9c3239a3284e017f7eb89ee2b3258bd504fb7 \
--hash=sha256:6b9bf3135b4ad5981df9a73d71a35272d650a2985ae9c2746357b24d59de2448 \
--hash=sha256:6beb738155fe8ab8091afdfa5a3226b21c2b1593f1e50ebb90eb25b44dbc0391 \
--hash=sha256:6c0dbbcc19735fe5f8b0a54c07659d154a9e69f47e15d0a6ab7299215daf62cb \
--hash=sha256:6cdc537c8633d7fd92a82e2e0d2ab74320a3f63d5e59fb9cf08711e08fe151c4 \
--hash=sha256:6eae33003518fd4cb4f83a218d5371469dd3001aa3b87128c005b07762f7fe5e \
--hash=sha256:740d0a99cf9de0b17a3943388e9294a59becf75e7c43421f387bd3c7a9901f7c \
--hash=sha256:75c38c50ab9aca840225d9a9a3810bf11d04bd5c1f186cabbb8aee56db3e9b15 \
--hash=sha256:761fdae6728ceb99ab182fad2f0cc1e262f610834dc891aea1d1a2a2e634776f \
--hash=sha256:7664419f27db41d4f1c43a78dccda7dd6e8ef2428df3ee01d0c2a07a6b071297 \
--hash=sha256:76d3af9732d2dab69f28179b40ba2d87e2f1d5824b4a694780aa787d685e8f36 \
--hash=sha256:78326f4cb4427a56ba4996c0762b63be45f06b85f086526420d2b3a66e40f84d \
--hash=sha256:7868b85224291c6cb6759f9b5adb9745f486d226f62b16a614dd5a2a5ab2b35b \
--hash=sha256:815d26356930846a40c7bc1366e7b1b0320ab8a063e66c11298a208bed0fd237 \
--hash=sha256:8171b44a054e5c67fd748ada04187f1250bf35b95f85e52ab64bcf3331a923bb \
--hash=sha256:821b2755db9194409254012f429c56643416fb96ef9be090be82ec8826b7f477 \
--hash=sha256:837c6b305e26fe0f75b15c92cf3b2ba29e0ae19dc40b1c557b026cb426347d0c \
--hash=sha256:839dde845559254f34885267c6878f60d61d5205180226d976fe488d45fa128e \
--hash=sha256:84a6ecc0c940169190d2c23bd969debd48c94dbc855acd60188a68d71d421608 \
--hash=sha256:8601470267d938bcb7f3ab1a336100af51a4fd5b6ed030ef52461bb3ef5e7e07 \
--hash=sha256:88b5268892fde430d5531f95bc560b6efbbd67c929662c586afd729a96e7461c \
--hash=sha256:8aa5dda18d39b6143eb24809d158f9252c88f402749b6f1b62a506cc7d96cc35 \
--hash=sha256:926bdd3e3b5998ddf70cc64bc8cf57209571f9044542913afb673799fec77dd0 \
--hash=sha256:96beca19ec79de272e8668585380ff9092c47077c1d7a1e098e00bbd921f4785 \
--hash=sha256:9a0460d43603d1fd9ef59c30278531e15d78581721ddb538fa560aa7817ea4ad \
--hash=sha256:a03d57b86d2a51d0a66c92177e2be154ad015f357791d306e714569999cdb4cc \
--hash=sha256:a36b70596407634ca82d4b989a3729074a008537a0522e4c8046a67c729103e9 \
--hash=sha256:a3a52a3ba86436ab3aef510fbe21512abc2ddd1993005dfe50514bd2284ef025 \
--hash=sha256:a3dbc5ed9514908d5046107d7b1346bde71eea61de6e0e4919c19354f97e769f \
--hash=sha256:a431156bb41865fc14cd5d79bb9d7bbed83110b0159e34e62ae30951f96c0009 \
--hash=sha256:a575404ebc9cf2e91edd32eaf570ec1430eb900d4f56724ba7dd4bc1fc9c176d \
--hash=sha256:a5cf77eb04f20b720be95265a3e00eb2a14814074255cc27069c551b2db53118 \
--hash=sha256:a8763f20692da7df39b0afdd1ba3042b004c50a45994f76c2d9a25641f7673db \
--hash=sha256:ab4b2fda7c2b542f7f9d886cc6a838c5079d2b76f72e6081411faba11adde2c9 \
--hash=sha256:addeda51556dac7c1a2f14cda62db8b621cd12afba3091d03a96c72932387eab \
--hash=sha256:b242c27c8f836305a4a72df9cdd564386ac57b807bd252a063223331c9316b37 \
--hash=sha256:b4f062343e7ad3fa94f2c66e5ae667dee47ee74dd41a9057c4fbe163236a123d \
--hash=sha256:b5b8b0753718d258fd454283fbd57e14545d3b40583fa672e27cb4f987626bcc \
--hash=sha256:be3e47e2d91aa3942ff9bf4077a505226005abfc39b6f7554a91c1b9393986b9 \
--hash=sha256:befc2d6a953e563f8a7bfd87a42c22ebf8a3e980dcb7b6a4d17b70b0e914e8a3 \
--hash=sha256:bf35d0568abda97233239ce32896d3ad53fccc537832c104e30c94aa5fb93569 \
--hash=sha256:c933c6678c6f116ff8af47a4c6db0868b8ace74af0343016c0ef00f00272ea69 \
--hash=sha256:c9d1aca01f49170fdcf5c92761b1fafe97f554b721ca4570c5949fff778f0d4b \
--hash=sha256:cdeaa99ce822dca76cfb1b993e9120c5ea212f2eb66d48950ad63c349668a018 \
--hash=sha256:ce4d4f52e2a4324396caddbd45a97d8d7be5f42edd25d2355282a9c34f9b2f7f \
--hash=sha256:d1028417bb44037eb3069c1009bd7b7277212876cda22fbe565b0bca9fab6d2c \
--hash=sha256:d151e148117294133bf8af7eeace085e7e87432db15ab6adf640330298a47f6f \
--hash=sha256:d7841166b7fa64c9c56404617ae4341448847482d45933b13135d26c130519e5 \
--hash=sha256:d7fca4eb6df565e2a928f1c7dad92d27db8f9df0f449e76423ed5d7e713ed445 \
--hash=sha256:d95a354e02393eada6d7351184671aced9d4cce109dabf927cb7aa99624352a1 \
--hash=sha256:d9edf30457d74eebfd76b045535e36f1cd89062566a128a0db2145ca042d787e \
--hash=sha256:dbc2673f9223d420c91145599b3ba45a8a50c207d1976908e5fb5ddb0c9b9429 \
--hash=sha256:e01b3c878c8641913e688edd1b3f08658c6783d29cf6b826bd3c0d1ae7a1ffaa \
--hash=sha256:e21c1429e205828ea886a2293a4a2c8e01f4c25d9893ca330e97a6cf73f52e7b \
--hash=sha256:e43d4a1f673e8a1cbd8533e809e02b4bf9d4f2280269bb640436556312121250 \
--hash=sha256:e6d198bad4e49dd6732fbd636e2fc5c082f45c8cad0b4acb756b00c82c76072e \
--hash=sha256:e6ea1cda8d8c688278430e4268a42f5e5da3bdd74578dfadc0820c3f1766ce83 \
--hash=sha256:ea394a937f17a54c51239348bdbe2e3518124c8d4a8951ba04a311d3095bd18f \
--hash=sha256:eac2f5dbafd585dfe31f86a23ebf0d3ba480a9d49ebc87947267b5608d4ea0cd \
--hash=sha256:eb61be926bb81567c1f48bdc8aa22b9855048dc2efd53871f9f7e6e9a5632346 \
--hash=sha256:eba5d173f7d5708b22a93815017a4611873ed54db9f268077c0dd1ed99cfc858 \
--hash=sha256:ec450527cbf485e13c8d3602a54f428ab0432fdade0ede75efd74b735421c871 \
--hash=sha256:eef6a03b0b6d08d0835ccfa8ec8d1bc70525e3801387567137b50c557695e6da \
--hash=sha256:ef0d8c843e2827d6c120ab4687e9423fb1d893db1df27b7c1506615bcb9734a0 \
--hash=sha256:ef6b65b03247c54692ad4fd9ee97cb772781927db72e3cb05e70b3db6d1ff14f \
--hash=sha256:f3d6ed6a98cfd19155996605474982cc470d7601746a6439078f1a5a3fa8b050 \
--hash=sha256:fce4b85234a0cbad67bf8e6e1201ee815d172c9aebad75f25645bc4d834f8e31 \
--hash=sha256:fda1d96e542c37b6c804547dbf489c129fe7c97183a76a5ec275909ba1a063df \
--hash=sha256:fdcd198979b4ecffcc1beba366a7fbcf4eb41243691a82fe52ceb0b902f09c12 \
--hash=sha256:fe5ad0664ec772b02c45859041aa17655709cced7a31005817fbbbd988c25567
# via
# jsonschema
# referencing
selinux==0.3.0 \
--hash=sha256:2a88b337ac46ad0f06f557b2806c3df62421972f766673dd8bf26732fb75a9ea \
--hash=sha256:ecf7add45c939e9dda682c390a2cd0a845c94a4793a2cce9e8870d4ee9501f99
# via molecule-plugins
subprocess-tee==0.4.2 \
--hash=sha256:21942e976715af4a19a526918adb03a8a27a8edab959f2d075b777e3d78f532d \
--hash=sha256:91b2b4da3aae9a7088d84acaf2ea0abee3f4fd9c0d2eae69a9b9122a71476590
# via ansible-compat
urllib3==2.8.0 \
--hash=sha256:0cf3cae568d36aa9576b28dfb35f11328f1cb974ca7647d9475ebb86c75ac6e3 \
--hash=sha256:63bf2ead4c879426ebf22ef2a781eeb4aa3b4ae798a0435506f8687fd5bb9b63
# via
# docker
# requests
wcmatch==12.0.4 \
--hash=sha256:23fe77fbfa3fff9e46f0f4a3d1891065270596774bd6131bd2f973fb822242a1 \
--hash=sha256:3e61e404a90a8b6c8bca197fb9ad5f1accbb34ee206b63e0c588a2ab9aa05862
# via molecule
+11
View File
@@ -0,0 +1,11 @@
# Pinned tooling of the molecule-controller image (images/molecule-controller, ADR 0003): what Molecule
# itself runs, nothing Lint uses. requirements-molecule.lock is its hashed lock and is what gets installed:
# pip install --require-hashes -r requirements-molecule.lock -r requirements-molecule.txt
# Renovate bumps a pin here and regenerates the lock (pip-compile manager); by hand, run
# scripts/lock-requirements.sh requirements-molecule.txt and commit both files.
# ansible-core equals the pin of requirements-dev.txt (check_image_versions.py pins fails otherwise), so
# Lint and Molecule judge the code with one ansible-core.
ansible-core==2.22.0
molecule==26.11.0
# The Docker driver, with the docker Python SDK it and the community.docker modules of its playbooks use.
molecule-plugins[docker]==26.11.0
+1
View File
@@ -32,6 +32,7 @@ The role targets Ubuntu hosts that run the tunnel daemon, not Proxmox nodes, so
| `cloudflared_zone_name` | `""` (asserted while `cloudflared_manage_dns`) | Zone of the ingress hostnames. |
| `cloudflared_allow_dns_overwrite` | `[]` | Hostnames whose existing non-tunnel DNS record may be overwritten. |
| `cloudflared_api_base_url` | `https://api.cloudflare.com/client/v4` | Cloudflare API base URL for the role's `uri` calls, no trailing slash. |
| `cloudflared_tunnel_lookup_delay` | `5` | Seconds between the three retries of a 404 from the tunnel lookup, at least 0. |
| `cloudflared_tunnel_name` | `{{ inventory_hostname }}-tunnel` | Tunnel name used by the `mint` entry point. |
| `cloudflared_version` | pinned in `defaults/main.yml` | Release tag, `YYYY.M.P`. |
| `cloudflared_sha256_amd64` | pinned | SHA-256 of the amd64 binary. Update with the version. |
+2
View File
@@ -17,6 +17,8 @@ cloudflared_config_dir: "/etc/cloudflared"
cloudflared_service_unit: "/etc/systemd/system/cloudflared.service"
cloudflared_api_base_url: "https://api.cloudflare.com/client/v4"
# Seconds between the three retries of a 404 from the tunnel lookup.
cloudflared_tunnel_lookup_delay: 5
cloudflared_tunnel_name: "{{ inventory_hostname }}-tunnel"
@@ -102,6 +102,13 @@ argument_specs:
Base URL of the Cloudflare API, without a trailing slash. Prefixed to every request the role makes with
C(ansible.builtin.uri) (tunnel lookup and delete, zone lookup and DNS record listing). The
C(community.general.cloudflare_dns) tasks always use the public endpoint.
cloudflared_tunnel_lookup_delay:
type: int
default: 5
description:
- >-
Seconds between the three retries of the tunnel lookup when Cloudflare answers 404, which right
after a mint can be read-after-write lag rather than a deleted tunnel. At least 0.
cloudflared_tunnel_name:
type: raw
description:
@@ -23,6 +23,8 @@
cloudflared_user: "{{ cloudflared_test_case.vars.cloudflared_user | default('cloudflared') }}"
cloudflared_install_dir: "{{ cloudflared_test_case.vars.cloudflared_install_dir | default('/usr/local/bin') }}"
cloudflared_config_dir: "{{ cloudflared_test_case.vars.cloudflared_config_dir | default('/etc/cloudflared') }}"
# The stub answers at once, so the retries need no wait; they still run.
cloudflared_tunnel_lookup_delay: "{{ cloudflared_test_case.vars.cloudflared_tunnel_lookup_delay | default(0) }}"
# Only reached when the include returned. The message must not contain the expected
# text, so the rescue below cannot mistake it for the failure under test.
@@ -157,6 +157,9 @@
- name: tunnel-id-not-uuid
vars: {cloudflared_tunnel_id: not-a-uuid}
expect: must be a lowercase UUID
- name: lookup-delay-negative
vars: {cloudflared_tunnel_lookup_delay: -1}
expect: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0
- name: tunnel-not-minted
vars: {cloudflared_tunnel_id: ""}
expect: run the mint entry point first
@@ -172,7 +175,7 @@
- name: tunnel-deleted
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-000000000002}
expect: no longer exists on Cloudflare
# Retried three times, 5 s apart, before the 404 is trusted.
# Retried three times (with no delay here) before the 404 is trusted.
- name: tunnel-unknown
vars: {cloudflared_tunnel_id: 6f1a6e2c-0000-4000-8000-00000000000f}
expect: (HTTP 404)
+1 -1
View File
@@ -20,7 +20,7 @@
# briefly before trusting it.
until: __cloudflared_tunnel_lookup.status | default(0) == 200
retries: 3
delay: 5
delay: "{{ cloudflared_tunnel_lookup_delay }}"
# Running out of retries fails the task whatever its status, and no_log would hide why: the
# two tasks below fail instead, with the re-mint instructions for a 404.
ignore_errors: true # noqa: ignore-errors
+6
View File
@@ -63,6 +63,12 @@
newline or %, and the two directories must be absolute paths.
quiet: true
- name: Require a non-negative tunnel lookup delay
ansible.builtin.assert:
that: cloudflared_tunnel_lookup_delay | int(-1) >= 0
fail_msg: cloudflared_tunnel_lookup_delay must be a whole number of seconds, at least 0.
quiet: true
# The role never creates the tunnel on its main entry point. Defined and empty (or null) counts
# as missing, as in the mint entry point, so the two cannot disagree.
- name: Require the minted tunnel secrets
+6 -4
View File
@@ -4,7 +4,7 @@ Installs Docker Engine from the upstream Docker APT repository, optionally updat
## Supported platforms
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_distribution_release`. The apt architecture is derived from the host (`x86_64` gives `amd64`, `aarch64` gives `arm64`); any other architecture fails the play until `docker_apt_arch` is set. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The key and repository URLs point at `download.docker.com/linux/ubuntu`, and the source line uses `ansible_facts['distribution_release']`. The apt architecture is derived from the host (`x86_64` gives `amd64`, `aarch64` gives `arm64`); any other architecture fails the play until `docker_apt_arch` is set. A limited molecule scenario covers the role's own logic (see [Tests](#tests)); the real Docker Engine is not tested.
The role targets Ubuntu hosts only: it installs from Docker's Ubuntu repository, so it does not cover Debian trixie (Proxmox hosts).
@@ -27,6 +27,7 @@ The role targets Ubuntu hosts only: it installs from Docker's Ubuntu repository,
| `docker_keyring_path` | `/etc/apt/keyrings/docker.asc` | no | Repository key location. |
| `docker_apt_list_path` | `/etc/apt/sources.list.d/docker.list` | no | APT source file. |
| `docker_gpg_url` | `https://download.docker.com/linux/ubuntu/gpg` | no | Key URL. |
| `docker_keyring_checksum` | sha256 of the current Docker key | no | Expected sha256 (hex, no `sha256:` prefix) of the key at `docker_gpg_url`; set it too when `docker_gpg_url` is overridden; a mismatch fails the download, so a changed key stops the install until this is updated. |
| `docker_repo_base_url` | `https://download.docker.com/linux/ubuntu` | no | Repository base URL. |
| `docker_apt_arch` | derived from the host | no | Architecture in the APT source. Empty derives it (`x86_64` gives `amd64`, `aarch64` gives `arm64`); another architecture fails until this is set. A value set here is always used; lowercase letters and digits only. |
| `docker_start_missed` | `false` | no | Install a boot unit that starts the containers Docker skipped after a reboot (see [Boot and shutdown units](#boot-and-shutdown-units)). |
@@ -86,17 +87,18 @@ With any of `docker_daemon_options`, `docker_live_restore`, `docker_log_driver`,
## Tests
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url` and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does. It runs `check` before the converge (on a fresh host) and after it (on the configured host).
`molecule/default` runs in CI only (`.gitea/workflows/molecule.yml`, no local runner), on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). A real Docker Engine cannot run there: `dockerd` needs the bridge, iptables rules and a delegated cgroup, and the container has no privileged mode. So the scenario builds a local APT repository, signs it with a throwaway key, and points the role at it with `docker_gpg_url`, `docker_keyring_checksum` (the throwaway key's hash) and `docker_repo_base_url`. The repository holds empty stand-ins for `docker-ce`, `docker-ce-cli` and `containerd.io`. The stand-in `docker-ce` ships a stub `docker.service` (`sleep infinity`) and creates the `docker` group, as the real package does. It runs `check` before the converge (on a fresh host) and after it (on the configured host).
What it shows, with the role's tasks running unchanged:
- The key is fetched, stored at `docker_keyring_path` with mode `0644`, and apt really verifies the repository against it (an unsigned or wrongly signed repository would leave no install candidate).
- The source line has the architecture, the `signed-by` keyring and `ansible_distribution_release`.
- The key is fetched, checked against `docker_keyring_checksum`, stored at `docker_keyring_path` with mode `0644`, and apt really verifies the repository against it (an unsigned or wrongly signed repository would leave no install candidate).
- The source line has the architecture, the `signed-by` keyring and `ansible_facts['distribution_release']`.
- The packages are installed from that repository, the unit is enabled and active, and `docker_users` join `docker_group`.
- `docker_remove` with `docker_remove_data` removes the source line, the keyring, the packages, the unit and `/var/lib/docker`.
- Both units are installed, enabled, ordered against `docker.service` as stated, the shutdown unit is active, a unit is removed when its input is `false`, and `docker_remove` removes both.
- With the daemon inputs set, `/etc/docker/daemon.json` is valid JSON with exactly the expected keys, mode `0644` and root-owned. A change with `docker_daemon_restart: false` leaves dockerd running (its start time is unchanged); with `true` it restarts it. A key set both in `docker_daemon_options` and by a dedicated input, and a bad log size, driver or file count, are refused before any change.
- The argument check refuses a mapping for `docker_users`, a non-boolean `docker_remove` and a `docker_stop_at_shutdown_timeout` of 0.
- A key whose hash does not match `docker_keyring_checksum` fails the key download.
- A second run changes nothing (molecule's idempotence check).
What it does not show: what the units do at a real boot or shutdown (the container has no dockerd, no NFS shares and no reboot; the selection logic of `docker-start-missed` is unit-tested in `tests/scripts/test_docker_files.py`), that the upstream repository and key at `download.docker.com` are reachable and valid, that the real packages install, that `dockerd` starts, anything about container networking or iptables, the `docker_update` path (`tasks/update.yml`), and removal without `docker_remove_data` (the removal stops the unit first, so it can run only once per install). It needs the Ubuntu mirrors, for the `curl` the role installs. These gaps are a known residual risk of the role.
+4
View File
@@ -11,6 +11,10 @@ docker_packages:
docker_keyring_path: /etc/apt/keyrings/docker.asc
docker_apt_list_path: /etc/apt/sources.list.d/docker.list
docker_gpg_url: https://download.docker.com/linux/ubuntu/gpg
# sha256 of Docker's package signing key (9DC858229FC7DD38854AE2D88D81803C0EBFCD88), as the ASCII-armored file
# docker_gpg_url serves. Static on purpose: a rotated or re-armored key fails the install until a person has checked the
# new one and updated this hash.
docker_keyring_checksum: "1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570"
docker_repo_base_url: https://download.docker.com/linux/ubuntu
# Architecture written into the APT source. Empty (the default) derives it from the host: x86_64 gives amd64, aarch64 gives arm64, any
+10 -2
View File
@@ -6,7 +6,7 @@ argument_specs:
- >-
Installs Docker Engine from the upstream APT repository, or removes it when C(docker_remove) is true. Optionally updates the packages to
the current candidate versions, then adds C(docker_users) to C(docker_group).
- Needs gathered facts, because the APT source uses C(ansible_distribution_release).
- Needs gathered facts, because the APT source uses C(ansible_facts['distribution_release']).
options:
docker_remove:
type: bool
@@ -49,11 +49,19 @@ argument_specs:
default: https://download.docker.com/linux/ubuntu/gpg
description:
- URL of the repository signing key.
docker_keyring_checksum:
type: str
default: 1500c1f56fa9e26b9b8f42452a553675796ade0807cdce11975eb98170b3a570
description:
- >-
sha256 of the key at C(docker_gpg_url), as the hex digest without the C(sha256:) prefix. The download fails
on a mismatch, so a rotated or re-armored upstream key stops the install until the new key is checked and
the hash updated. Set C(docker_keyring_checksum) too when C(docker_gpg_url) is overridden.
docker_repo_base_url:
type: str
default: https://download.docker.com/linux/ubuntu
description:
- Base URL of the repository. The source line uses C(ansible_distribution_release) and the C(stable) component.
- Base URL of the repository. The source line uses C(ansible_facts['distribution_release']) and the C(stable) component.
docker_apt_arch:
type: str
default: ""
+8 -113
View File
@@ -7,6 +7,8 @@
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
# The stand-in key is generated per run, so its hash is read here rather than pinned.
docker_keyring_checksum: "{{ docker_stub_key.stat.checksum }}"
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: true
@@ -18,118 +20,11 @@
docker_log_max_file: "3"
docker_daemon_options:
max-concurrent-downloads: 3
pre_tasks:
- name: Stat the stand-in repository key
ansible.builtin.stat:
path: /srv/docker-stub-repo/docker.asc
checksum_algorithm: sha256
register: docker_stub_key
roles:
- role: mortis.kamino.docker
# The plays below are refusals: argument_specs rejects the wrong types before any task runs,
# so the idempotence run stays clean. A sentinel in the failure message tells "the role
# refused" from "the fail task after the role ran", which a bare rescue cannot.
- name: A docker_users value that is not a list is refused
hosts: all
gather_facts: false
vars:
docker_users:
not: a-list
tasks:
- name: Apply the role with a mapping for docker_users
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the wrong type was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The argument check stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_users' in ansible_failed_result.msg | default('')"
quiet: true
- name: A docker_remove value that is not a boolean is refused
hosts: all
gather_facts: false
vars:
docker_remove: maybe
tasks:
- name: Apply the role with a non-boolean docker_remove
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the wrong type was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The argument check stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_remove' in ansible_failed_result.msg | default('')"
quiet: true
# The architecture is written into the one-line apt source, so a value with a space or a bracket is refused before anything
# changes. The derived default is covered by the converge above and verify.yml (the container is x86_64, so the source says amd64).
- name: A docker_apt_arch value that would corrupt the apt source is refused
hosts: all
gather_facts: false
vars:
docker_apt_arch: "bad arch"
tasks:
- name: Apply the role with a bad architecture
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the bad architecture was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_apt_arch' in ansible_failed_result.msg | default('')"
quiet: true
# The unit timings are checked before anything changes.
- name: A docker_stop_at_shutdown_timeout of 0 is refused
hosts: all
gather_facts: false
vars:
docker_stop_at_shutdown_timeout: 0
tasks:
- name: Apply the role with a timeout of 0
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the timeout was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_stop_at_shutdown_timeout' in ansible_failed_result.msg | default('')"
quiet: true
# A key that docker_daemon_options and a dedicated input both set, and a log value dockerd would reject, stop the run before any change.
- name: A bad daemon setting is refused
hosts: all
gather_facts: false
tasks:
- name: Apply the role with each bad setting
ansible.builtin.include_tasks: tasks/refuse_daemon.yml
vars:
docker_refused: "{{ item }}"
loop:
- {docker_live_restore: true, docker_daemon_options: {live-restore: false}}
- {docker_log_driver: local, docker_daemon_options: {log-driver: json-file}}
- {docker_log_max_size: 10m, docker_daemon_options: {log-opts: {max-size: 1m}}}
- {docker_log_driver: Local}
- {docker_log_max_size: ten}
- {docker_log_max_file: "0"}
- {docker_log_max_file: "-1"}
@@ -0,0 +1,27 @@
---
# The zeroed hash matches no file, so the key task must be the one that fails.
- name: Run the role with a checksum the stand-in key does not have
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_repo_base_url: file:///srv/docker-stub-repo
docker_keyring_path: /tmp/docker-refused-key.asc
docker_keyring_checksum: "{{ '0' * 64 }}"
- name: Fail when the wrong key was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The key download stopped the play
ansible.builtin.assert:
that:
- ansible_failed_task.name == 'Install Docker APT GPG key'
- "'did not match' in ansible_failed_result.msg | default('')"
quiet: true
always:
- name: Remove the refused key path
ansible.builtin.file:
path: /tmp/docker-refused-key.asc
state: absent
+186 -45
View File
@@ -1,4 +1,133 @@
---
# The refusals need no container, so they run once, on the controller, in check mode so that a
# refusal that regressed cannot change it. The controller has no gathered facts, so a play that
# does not test the architecture sets it. A sentinel in the failure message tells "the role
# refused" from "the fail task after the role ran", which a bare rescue cannot.
- name: A docker_users value that is not a list is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
docker_apt_arch: amd64
docker_users:
not: a-list
tasks:
- name: Apply the role with a mapping for docker_users
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the wrong type was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The argument check stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_users' in ansible_failed_result.msg | default('')"
quiet: true
- name: A docker_remove value that is not a boolean is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
docker_apt_arch: amd64
docker_remove: maybe
tasks:
- name: Apply the role with a non-boolean docker_remove
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the wrong type was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The argument check stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_remove' in ansible_failed_result.msg | default('')"
quiet: true
# The architecture is written into the one-line apt source, so a value with a space or a bracket is refused before anything
# changes. The derived default is covered by converge.yml and the plays below (the container is x86_64, so the source says amd64).
- name: A docker_apt_arch value that would corrupt the apt source is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
docker_apt_arch: "bad arch"
tasks:
- name: Apply the role with a bad architecture
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the bad architecture was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_apt_arch' in ansible_failed_result.msg | default('')"
quiet: true
# The unit timings are checked before anything changes.
- name: A docker_stop_at_shutdown_timeout of 0 is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
docker_apt_arch: amd64
docker_stop_at_shutdown_timeout: 0
tasks:
- name: Apply the role with a timeout of 0
block:
- name: Include the role
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Fail when the timeout was accepted
ansible.builtin.fail:
msg: MOLECULE-ACCEPTED
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that:
- "'MOLECULE-ACCEPTED' not in ansible_failed_result.msg | default('')"
- "'docker_stop_at_shutdown_timeout' in ansible_failed_result.msg | default('')"
quiet: true
# A key that docker_daemon_options and a dedicated input both set, and a log value dockerd would reject, stop the run before any change.
- name: A bad daemon setting is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
docker_apt_arch: amd64
tasks:
- name: Apply the role with each bad setting
ansible.builtin.include_tasks: tasks/refuse_daemon.yml
vars:
docker_refused: "{{ item }}"
loop:
- {docker_live_restore: true, docker_daemon_options: {live-restore: false}}
- {docker_log_driver: local, docker_daemon_options: {log-driver: json-file}}
- {docker_log_max_size: 10m, docker_daemon_options: {log-opts: {max-size: 1m}}}
- {docker_log_driver: Local}
- {docker_log_max_size: ten}
- {docker_log_max_file: "0"}
- {docker_log_max_file: "-1"}
# What the role is for, as far as stand-in packages can show it: the repository key and the
# source line are in place and apt really used them, the packages are installed from that
# repository, the unit is enabled and running, and the user joined the group. The second play
@@ -168,41 +297,7 @@
changed_when: false
failed_when: docker_verify_start_run.rc != 2
# Switching an input back to false removes that unit and script and leaves the other alone.
- name: Verify that a unit is removed when its input is false
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: false
docker_stop_at_shutdown: true
docker_stop_at_shutdown_timeout: 20
tasks:
- name: Apply the role with the boot unit off
ansible.builtin.include_role:
name: mortis.kamino.docker
- name: Stat the boot unit's files and the shutdown unit's script
ansible.builtin.stat:
path: "{{ item }}"
loop:
- /usr/local/sbin/docker-start-missed
- /etc/systemd/system/docker-start-missed.service
- /usr/local/sbin/docker-stop-at-shutdown
register: docker_verify_off
- name: The boot unit is gone and the shutdown unit is still there
ansible.builtin.assert:
that: docker_verify_off.results | map(attribute='stat.exists') | list == [false, false, true]
quiet: true
- name: Apply the role again with both inputs on
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: true
# Converge's daemon.json, read before the role runs below change it.
- name: Verify the daemon settings
hosts: all
gather_facts: false
@@ -233,31 +328,43 @@
- docker_verify_daemon_stat.stat.pw_name == 'root'
quiet: true
# The stand-in docker.service runs for real, so a restart shows in its start time: a changed file with docker_daemon_restart false leaves
# it alone, and with true restarts it.
- name: Verify that dockerd restarts only when asked
# The stand-in docker.service runs for real, so a restart shows in its start time. The first run turns the boot unit off and changes
# daemon.json with docker_daemon_restart false: the unit goes, the other stays and dockerd keeps running. The second turns everything
# back on with docker_daemon_restart true: the boot unit returns and dockerd restarts.
- name: Verify the unit inputs and that dockerd restarts only when asked
hosts: all
vars:
docker_gpg_url: file:///srv/docker-stub-repo/docker.asc
docker_keyring_checksum: "{{ docker_stub_key.stat.checksum }}"
docker_repo_base_url: file:///srv/docker-stub-repo
docker_users: [moleculeuser]
docker_start_missed: true
docker_stop_at_shutdown: true
docker_stop_at_shutdown_timeout: 20
docker_log_driver: local
docker_log_max_size: 10m
docker_log_max_file: "3"
docker_live_restore: true
docker_verify_unit_paths:
- /usr/local/sbin/docker-start-missed
- /etc/systemd/system/docker-start-missed.service
- /usr/local/sbin/docker-stop-at-shutdown
tasks:
- name: Stat the stand-in repository key
ansible.builtin.stat:
path: /srv/docker-stub-repo/docker.asc
checksum_algorithm: sha256
register: docker_stub_key
- name: Read the start time of the service
ansible.builtin.command: systemctl show -p ActiveEnterTimestampMonotonic docker.service # noqa: command-instead-of-module
register: docker_verify_before
changed_when: false
- name: Apply a changed setting with docker_daemon_restart false
- name: Apply the boot unit off and a changed setting with docker_daemon_restart false
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: false
docker_daemon_options: {max-concurrent-downloads: 5}
docker_daemon_restart: false
@@ -266,10 +373,30 @@
register: docker_verify_kept
changed_when: false
- name: Apply another change with docker_daemon_restart true
- name: Stat the boot unit's files and the shutdown unit's script
ansible.builtin.stat:
path: "{{ item }}"
loop: "{{ docker_verify_unit_paths }}"
register: docker_verify_off
- name: Read daemon.json
ansible.builtin.slurp:
src: /etc/docker/daemon.json
register: docker_verify_daemon_kept
- name: The boot unit is gone, the shutdown unit is still there, and the changed file left dockerd running
ansible.builtin.assert:
that:
- docker_verify_off.results | map(attribute='stat.exists') | list == [false, false, true]
- (docker_verify_daemon_kept.content | b64decode | from_json)['max-concurrent-downloads'] == 5
- docker_verify_kept.stdout == docker_verify_before.stdout
quiet: true
- name: Apply both units on and another change with docker_daemon_restart true
ansible.builtin.include_role:
name: mortis.kamino.docker
vars:
docker_start_missed: true
docker_daemon_options: {max-concurrent-downloads: 6}
docker_daemon_restart: true
@@ -278,19 +405,33 @@
register: docker_verify_restarted
changed_when: false
- name: Read daemon.json
- name: Stat the unit files again
ansible.builtin.stat:
path: "{{ item }}"
loop: "{{ docker_verify_unit_paths }}"
register: docker_verify_on
- name: Read daemon.json again
ansible.builtin.slurp:
src: /etc/docker/daemon.json
register: docker_verify_daemon_after
- name: The first change left dockerd alone and the second restarted it
- name: Both units are back and the second change restarted dockerd
ansible.builtin.assert:
that:
- docker_verify_kept.stdout == docker_verify_before.stdout
- docker_verify_restarted.stdout != docker_verify_kept.stdout
- docker_verify_on.results | map(attribute='stat.exists') | unique | list == [true]
- (docker_verify_daemon_after.content | b64decode | from_json)['max-concurrent-downloads'] == 6
- docker_verify_restarted.stdout != docker_verify_kept.stdout
quiet: true
# A key that does not match docker_keyring_checksum fails at the key download, so the source line and packages are untouched. It goes to a separate path, so
# the installed key stays for the removal below.
- name: A key that does not match the pinned checksum is refused
hosts: all
tasks:
- name: Apply the role with a wrong checksum
ansible.builtin.include_tasks: tasks/refuse_checksum.yml
# docker_remove_data is set, so this also covers the destructive path: the packages are
# purged and /var/lib/docker, seeded in prepare.yml, is deleted. The removal stops the unit
# before the package takes it away, so it can only run once; a second run would fail on the
+4 -1
View File
@@ -7,6 +7,7 @@
- curl
state: present
update_cache: true
cache_valid_time: 3600
tags: [docker, install]
- name: Ensure APT keyrings directory exists
@@ -22,6 +23,7 @@
ansible.builtin.get_url:
url: "{{ docker_gpg_url }}"
dest: "{{ docker_keyring_path }}"
checksum: "sha256:{{ docker_keyring_checksum }}"
mode: "0644"
tags: [docker, install]
@@ -30,7 +32,7 @@
ansible.builtin.copy:
dest: "{{ docker_apt_list_path }}"
content: |
deb [arch={{ __docker_apt_arch }} signed-by={{ docker_keyring_path }}] {{ docker_repo_base_url }} {{ ansible_distribution_release }} stable
deb [arch={{ __docker_apt_arch }} signed-by={{ docker_keyring_path }}] {{ docker_repo_base_url }} {{ ansible_facts['distribution_release'] }} stable
mode: "0644"
register: __docker_apt_source
tags: [docker, install]
@@ -40,6 +42,7 @@
ansible.builtin.apt:
name: "{{ docker_packages }}"
state: present
# Always refreshed: a run that wrote the source line but failed to fetch its lists heals here.
update_cache: true
register: __docker_packages
notify: Restart docker
+5 -3
View File
@@ -82,24 +82,26 @@ Main entry point: `fail2ban` (everything), `fail2ban_install`, `fail2ban_validat
## Tests
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the image already has fail2ban installed) and after it (a configured host).
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It runs `check` before the converge (a fresh host, where the role installs fail2ban) and after it (a configured host).
- Converge applies the main entry point with an extra `fail2ban_ignoreip` network and calls `service_jail` twice, one jail with a `logpath` and one with a `journalmatch`.
- Converge also runs inputs that must be refused: a service filter without `failregex`, and a `fail2ban_ignoreip` entry with whitespace, a plain string instead of a list, and an entry starting with `;`. The `fail2ban_ignoreip` refusals are matched on their message.
- Verify checks that the `sshd` jail does not read `/var/log/auth.log`, that `jail.local` holds the configured `ignoreip` in `[DEFAULT]` and none of the refused values, that each service jail has its own `jail.d` file and the refused one left no file, that `fail2ban-client -t` passes, and that the running daemon loaded `sshd`, `svc-a` and `svc-b` and applies the `ignoreip` network to both a base jail and a service jail.
- The side effect bans an address and rewrites `jail.local` with a new `maxretry`; verify checks the new value is active, the ban is still in force and the daemon PID is unchanged, so the change reloaded Fail2Ban instead of restarting it.
The scenario `molecule/check-absent/` runs on the same two platforms: prepare purges fail2ban and refreshes the APT cache, then `check` runs the main entry point and `service_jail` under `--check`, which must pass with fail2ban not installed. Nothing is applied.
Not covered: no failure is sent through a jail, so a ban triggered by `failregex` is not tested, and the reload behaviours read from the Fail2Ban source (see Notes) are not run.
## Notes
- Idempotent: yes.
- Check mode: `--check` previews a host where fail2ban is already installed; a play-level `check_mode: true` is not supported. On a host without fail2ban it fails at the configuration and service tasks: the package is not installed under `--check`, so `/etc/fail2ban`, `fail2ban-client` and the unit are missing.
- Check mode: `--check` is the supported preview; a play-level `check_mode: true` is not supported. On a host without fail2ban the preview reports the install and skips the configuration, the service and the jail tasks, which need `/etc/fail2ban`, `fail2ban-client` and the unit.
- `fail2ban_ignoreip` lives in the `[DEFAULT]` section of `jail.local`, so it also applies to the jails that `service_jail` writes to `jail.d`. The exemption only exists once the main entry point has written `jail.local` on that host: `service_jail` does not read `fail2ban_ignoreip`, so a host that uses only `service_jail` has none.
- `fail2ban_ignoreip` replaces an `ignoreip` set in `jail.conf` or `jail.d/*.conf`, which Fail2Ban reads before `jail.local`; a `jail.d/*.local` file is read after it and can still override it for one jail. Entries must not contain whitespace, `;` or `%` (a `;` after whitespace starts a comment in Fail2Ban's config files and a `%` is interpolation syntax).
- Prefer IP addresses and CIDR networks in `fail2ban_ignoreip`. Fail2Ban resolves a hostname when the jail starts, and a failed lookup leaves that entry ineffective with only a log warning. The validation of `fail2ban_ignoreip` runs under the `fail2ban_validate` tag, so `--tags fail2ban_configure` skips it.
- Changing `jail.local` or a service jail reloads Fail2Ban instead of restarting it. A restart stops every jail, which flushes its bans out of the firewall until they are restored from the database, and forgets failures counted toward `maxretry`; a reload applies the new settings to the running jails. When the whole role runs, the reload comes after `fail2ban-client -t`.
- What a reload does not do, compared with the restart it replaces (read from the Fail2Ban 1.1.0 source, not run here): it does not unban an address that a widened `fail2ban_ignoreip` now covers (only a restart skips ignored addresses when it restores bans, so run `fail2ban-client unban <address>` to release one at once, or wait for the ban to expire); it does not change bans that already exist when `bantime` changes; and it does not apply server-level settings (`loglevel`, `dbfile`, `socket`, `pidfile`), which this role does not write. A changed `backend` restarts that jail by itself.
- With `--tags fail2ban_configure` only, `fail2ban-client -t` does not run before the reload; the reload (`fail2ban-client reload` in the upstream unit) still rejects a bad configuration and leaves the running daemon alone.
- `fail2ban-client -t` runs on every invocation of both entry points, not only when a file changed, so a broken file fails every run until fixed. It also runs in check mode.
- `fail2ban-client -t` runs on every invocation of both entry points, not only when a file changed, so a broken file fails every run until fixed. It also runs in check mode, except on a host without fail2ban.
- `no_log` is not used: the role handles no secrets.
+2
View File
@@ -11,3 +11,5 @@
ansible.builtin.systemd:
name: fail2ban
state: reloaded
# Under --check on a fresh host the package is not installed, so there is no unit to reload.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
@@ -0,0 +1,21 @@
---
# Run only under --check (the check step): fail2ban is not installed, so the tasks that need it skip.
- name: Converge the base role on a host without fail2ban
hosts: all
roles:
- role: mortis.kamino.fail2ban
- name: Converge a service jail on a host without fail2ban
hosts: all
tasks:
- name: Service jail with a journalmatch
ansible.builtin.include_role:
name: mortis.kamino.fail2ban
tasks_from: service_jail
vars:
fail2ban_service_name: svc-a
fail2ban_service_jail:
port: "8080"
journalmatch: "_SYSTEMD_UNIT=ssh.service"
fail2ban_service_filter:
failregex: "^.*denied for <HOST>.*$"
@@ -0,0 +1,55 @@
---
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. No privileged mode: systemd needs a writable cgroup and the
# firewall tools need NET_ADMIN, nothing else. Needs the network:
# prepare purges any fail2ban and refreshes the APT cache the image deletes.
driver:
name: docker
platforms:
- name: ${KAMINO_RUN_ID:-local}-fail2ban-check-absent-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
capabilities:
- NET_ADMIN
security_opts:
- apparmor=unconfined
- name: ${KAMINO_RUN_ID:-local}-fail2ban-check-absent-2604-instance
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE_2604}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
capabilities:
- NET_ADMIN
security_opts:
- apparmor=unconfined
provisioner:
name: ansible
verifier:
name: ansible
scenario:
# Previews the role on a host without fail2ban (--check only, nothing is applied); no destroy:
# scripts/run_molecule_scenarios.sh removes the container as soon as this scenario ends.
test_sequence:
- dependency
- create
- prepare
- check
@@ -0,0 +1,16 @@
---
# The purge keeps the scenario independent of what the image ships. The image keeps no APT lists,
# and the check step needs them, or the install task cannot even preview the package.
- name: Prepare a host without fail2ban
hosts: all
gather_facts: false
tasks:
- name: Purge fail2ban
ansible.builtin.apt:
name: fail2ban
state: absent
purge: true
- name: Refresh the APT cache
ansible.builtin.apt:
update_cache: true
+7 -1
View File
@@ -1,9 +1,15 @@
---
# The log file a service jail watches must exist, or `fail2ban-client -t` fails.
# The image keeps no APT lists, and --check does not refresh them, so the fresh-host check needs
# them to preview the fail2ban install. The log file a service jail watches must exist, or
# `fail2ban-client -t` fails.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Refresh the APT cache
ansible.builtin.apt:
update_cache: true
- name: Create the log file the logpath jail watches
ansible.builtin.file:
path: /var/log/svc-a.log
+2
View File
@@ -8,3 +8,5 @@
group: root
mode: "0600"
notify: Reload Fail2Ban
# Under --check on a fresh host the package is not installed, so /etc/fail2ban is missing.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
+1
View File
@@ -7,3 +7,4 @@
# Required for `backend = systemd` jails (journalmatch), e.g. gitea's.
- python3-systemd
state: present
register: __fail2ban_install
+6 -1
View File
@@ -8,6 +8,8 @@
failed_when: fail2ban_test.rc != 0
changed_when: false
check_mode: false
# Under --check on a fresh host the package is not installed: no fail2ban-client and no unit.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
- name: Ensure Fail2Ban service is running
become: true
@@ -15,6 +17,7 @@
name: fail2ban
enabled: "{{ fail2ban_service.enabled | default(true) }}"
state: "{{ fail2ban_service.state | default('started') }}"
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
# Handlers run at the end of the play; flush so the reload happens after the
# configuration test above and before the jail check below.
@@ -33,4 +36,6 @@
delay: 2
changed_when: false
check_mode: false
when: fail2ban_service.state | default('started') == 'started'
when:
- not ansible_check_mode or __fail2ban_install | default({}) is not changed
- fail2ban_service.state | default('started') == 'started'
+5 -2
View File
@@ -33,6 +33,8 @@
group: root
mode: "0644"
notify: Reload Fail2Ban
# Under --check on a fresh host the package is not installed, so /etc/fail2ban is missing.
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
- name: Deploy service jail
@@ -44,14 +46,15 @@
group: root
mode: "0644"
notify: Reload Fail2Ban
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
# Read-only, so it also runs in check mode. A failure leaves the broken file on
# disk and fails every run until fixed, instead of only the run that wrote it.
tags: [fail2ban, fail2ban_service_jail]
- name: Test Fail2Ban configuration
become: true
ansible.builtin.command: fail2ban-client -t
changed_when: false
check_mode: false
when: not ansible_check_mode or __fail2ban_install | default({}) is not changed
tags: [fail2ban, fail2ban_service_jail]
+1 -1
View File
@@ -7,7 +7,7 @@
# the service starts) is not covered. The mint tasks only assert, but the remove-path play at the
# end of verify.yml needs systemd (it stops and disables a stub unit) and ufw (it deletes the Gitea
# rules), so the container runs systemd as PID 1 with a writable cgroup and NET_ADMIN. No
# privileged mode. Both images have ufw and gnupg preinstalled, so the scenario downloads nothing.
# privileged mode. Both images have gnupg preinstalled; prepare.yml installs ufw from the archive.
driver:
name: docker
platforms:
+12
View File
@@ -0,0 +1,12 @@
---
# The remove-path play in verify.yml needs ufw, which the image does not ship. It keeps no APT
# lists, so the install refreshes them.
- name: Prepare
hosts: all
gather_facts: false
tasks:
- name: Install ufw
ansible.builtin.apt:
name: ufw
state: present
update_cache: true
+1 -1
View File
@@ -18,7 +18,7 @@ The role targets Ubuntu hosts that run CI jobs, not Proxmox nodes, so it does no
- The registration token is generated on the fly, held in a `no_log` fact and passed to `gitea-runner register` through the `GITEA_RUNNER_REGISTRATION_TOKEN` environment variable, not argv. It is never written to a file by the role.
- The role creates `gitea_runner_group` and `gitea_runner_user` when they are missing; an existing account (for example the SSH login user) is reused.
- Docker is installed by this role (`tasks/docker.yml`) on first install, not by `mortis.kamino.docker`.
- Fact gathering must be on for `gitea_runner_force_register`: the backup name uses `ansible_date_time`.
- Fact gathering must be on for `gitea_runner_force_register`: the backup name uses `ansible_facts['date_time']`.
- Updates: the update path stages the verified binary and hands the swap to `mortis.kamino._binary_update`, an internal role of this Collection.
- `gitea_runner_version` is asserted at role start to be a plain `X.Y.Z` release number, with no leading `v`. Pin it in inventory to move the runner independently of Collection releases; the role default changes only with a release.
- The executor and job image of a job come from its label's suffix (`:host` or `docker://<image>`); a label with no suffix runs its jobs on the host. `config.yaml` has no keys for them.
+1 -1
View File
@@ -19,7 +19,7 @@ argument_specs:
C(gitea_runner_token_host), C(gitea_runner_instance_url) and C(gitea_runner_name) have empty role defaults and
are asserted only when registration runs, so a run that never registers is not blocked.
- >-
Reads gathered facts (C(ansible_date_time), for the forced re-registration backup name) and
Reads gathered facts (C(ansible_facts['date_time']), for the forced re-registration backup name) and
C(ansible_check_mode).
options:
gitea_runner_remove:
+38 -38
View File
@@ -359,23 +359,26 @@
loop_var: gitea_runner_test_path
# 6.0.2 has a wrong checksum file (prepare.yml): the download must fail before anything is
# stopped, so the runner keeps running 6.0.1.
- name: Verify a failed download leaves the runner running
# stopped, so the runner keeps running 6.0.1. The same run sets the disk threshold to 0: prune
# runs before update, so the pressure units are already removed when the download fails.
- name: Verify a failed download leaves the runner running, and turning the pressure prune off
hosts: all
gather_facts: false
tasks:
- name: Update to a release whose checksum does not match
block:
- name: Include the role with gitea_runner_version 6.0.2
- name: Include the role with gitea_runner_version 6.0.2 and the disk threshold at 0
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
vars:
gitea_runner_version: 6.0.2
gitea_runner_docker_prune_disk_threshold_percent: 0
- name: Fail because the include returned
ansible.builtin.fail:
msg: The role accepted a binary with a wrong checksum
rescue:
# The message comes only from the staging rescue, so a prune error fails this assert.
- name: The staging failed, and nothing else failed first
ansible.builtin.assert:
that:
@@ -407,6 +410,31 @@
- not gitea_runner_test_staged.stat.exists
quiet: true
- name: Stat the pressure units and script
ansible.builtin.stat:
path: "{{ gitea_runner_test_path }}"
loop:
- /etc/systemd/system/gitea-runner-docker-prune-pressure.service
- /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
loop_control:
loop_var: gitea_runner_test_path
register: gitea_runner_test_pressure_off
- name: Ask systemd about the pressure timer after turning it off
ansible.builtin.systemd:
name: gitea-runner-docker-prune-pressure.timer
register: gitea_runner_test_pressure_timer_off
# The module errors for a unit that no longer exists, which is also a pass.
failed_when: false
- name: The pressure units are gone and the timer is not active
ansible.builtin.assert:
that:
- gitea_runner_test_pressure_off.results | map(attribute='stat') | map(attribute='exists') | select | list | length == 0
- gitea_runner_test_pressure_timer_off.status.ActiveState | default('inactive') != 'active'
quiet: true
# Each input assert, through the main entry point. Every one runs in validate.yml, before any
# change.
- name: Verify the input asserts
@@ -448,8 +476,9 @@
label: "{{ gitea_runner_test_refused.name }}"
# The CI guard and the mint-before-drop order of a forced re-registration, through a child
# ansible-playbook against this instance (see force_register.yml). Neither case may touch the
# registration or stop the runner.
# ansible-playbook against one instance (see force_register.yml). Neither case may touch the
# registration or stop the runner. The children run once: what they check is controller state
# and group_vars, the same for every host, and run_once gives every host their results.
- name: Verify the forced re-registration guards
hosts: all
gather_facts: false
@@ -465,6 +494,7 @@
- name: Force a re-registration under each CI variable, as a child process with only that one set
delegate_to: localhost
run_once: true
ansible.builtin.command:
argv:
- ansible-playbook
@@ -497,6 +527,7 @@
- name: Force a re-registration outside CI with no token host, as a child process
delegate_to: localhost
run_once: true
ansible.builtin.command:
argv:
- ansible-playbook
@@ -550,43 +581,12 @@
- gitea_runner_test_unit.status.ActiveState == 'active'
quiet: true
# A threshold of 0 removes the pressure units; the run after it, with the scenario's inputs,
# The failed-download run above removed the pressure units; this run, with the scenario's inputs,
# puts them back, so the remove path below still has them to remove.
- name: Verify turning the pressure prune off
- name: Verify turning the pressure prune on again
hosts: all
gather_facts: false
tasks:
- name: Run the role with the disk threshold at 0
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
vars:
gitea_runner_docker_prune_disk_threshold_percent: 0
- name: Stat the pressure units and script
ansible.builtin.stat:
path: "{{ gitea_runner_test_path }}"
loop:
- /etc/systemd/system/gitea-runner-docker-prune-pressure.service
- /etc/systemd/system/gitea-runner-docker-prune-pressure.timer
- /usr/local/sbin/gitea-runner-docker-prune-disk-check
loop_control:
loop_var: gitea_runner_test_path
register: gitea_runner_test_pressure_off
- name: Ask systemd about the pressure timer after turning it off
ansible.builtin.systemd:
name: gitea-runner-docker-prune-pressure.timer
register: gitea_runner_test_pressure_timer_off
# The module errors for a unit that no longer exists, which is also a pass.
failed_when: false
- name: The pressure units are gone and the timer is not active
ansible.builtin.assert:
that:
- gitea_runner_test_pressure_off.results | map(attribute='stat') | map(attribute='exists') | select | list | length == 0
- gitea_runner_test_pressure_timer_off.status.ActiveState | default('inactive') != 'active'
quiet: true
- name: Run the role again with the scenario's inputs
ansible.builtin.include_role:
name: mortis.kamino.gitea_runner
+1 -1
View File
@@ -71,7 +71,7 @@
become: true
ansible.builtin.copy:
src: "{{ gitea_runner_work_dir }}/.runner"
dest: "{{ gitea_runner_work_dir }}/.runner.bak.{{ ansible_date_time.iso8601_basic_short }}"
dest: "{{ gitea_runner_work_dir }}/.runner.bak.{{ ansible_facts['date_time']['iso8601_basic_short'] }}"
remote_src: true
owner: "{{ gitea_runner_state.stat.pw_name }}"
group: "{{ gitea_runner_state.stat.gr_name }}"
+74
View File
@@ -0,0 +1,74 @@
# nfs_client
Installs the NFS client (`nfs-common`) and manages NFS mount entries in `/etc/fstab`. It writes the fstab line, creates the mount point and reloads systemd; it never mounts or unmounts anything. Variables and their types are defined in [`meta/argument_specs.yml`](meta/argument_specs.yml), which is the source of truth.
## Supported platforms
Ubuntu 24.04 (noble) and 26.04 (resolute), the platforms the molecule scenario runs on. The role asserts a Debian-family host before any change.
Untested platforms: Debian 13 (trixie). The role has no OS-specific branch, but no scenario runs on it until the Debian image (#226) exists.
## Requirements and run order
- Use it by its fully qualified name, `mortis.kamino.nfs_client`, in a play that gathers facts: the Debian-family assert reads them.
- Role dependencies: none. The role calls `ansible.posix.mount`, so the Collection's `ansible.posix` dependency applies.
- `become` is used for every task that changes the host.
- The role does not set up an NFS server, autofs, CIFS/SMB or Kerberos, and it does not wait for a mount.
## Role variables
| Variable | Default | Description |
|---|---|---|
| `nfs_client_mounts` | `[]` | The mounts to manage: a list of entries, each mount point once. With no entries only the client package is installed. |
| `nfs_client_default_opts` | `_netdev,nofail` | Options for an entry that sets none. |
An entry takes these keys:
| Key | Default | Description |
|---|---|---|
| `src` | required | The export as `server:/export`, one word without spaces. |
| `path` | required | The mount point: absolute, without spaces, not `/`, no trailing slash. |
| `opts` | `nfs_client_default_opts` | The fstab options, one comma-separated word. Put the NFS version here, for example `vers=4.2`. |
| `state` | `present` | `present` writes the fstab line. `absent` removes it and nothing else. |
## Tags
- `nfs_client`: everything the role does.
- `install`: the client package.
- `configure`: the mount points and the fstab entries.
Validation runs under `always`, so a bad input fails before any change whatever tags the run selects.
## Example play
```yaml
- name: NFS client
hosts: nfs_clients
roles:
- role: mortis.kamino.nfs_client
vars:
nfs_client_mounts:
- src: nas.example:/export/data
path: /mnt/data
- src: nas.example:/export/media
path: /mnt/media
opts: _netdev,nofail,ro,vers=4.2
```
## Tests
`molecule/default` runs on Ubuntu noble and resolute: a check on a fresh host, the converge, a check on the configured host, an idempotence run, and `verify.yml`. The scenario seeds an fstab line for `/mnt/data` that names another server and a line and a directory for `/mnt/old`, so the run shows that a line is replaced once and that an `absent` entry loses only its line.
`verify.yml` first checks a refusal for each validation on the controller, once, in check mode (a missing or empty `src`, a `src` without an export, a relative path, the root, a trailing slash, options with a space or none, a duplicate path, `mounted` and `remounted`, a host without facts). It then asserts, on each container, the client package, the exact fstab fields, that a new mount point is root's and an existing one keeps its owner and mode, that the removed entry's directory and file are intact, that `/proc/mounts` shows nothing mounted, and that systemd has a mount unit for each new entry and none for the removed one.
What it does not show: that a real share mounts at boot (the server in the scenario does not exist), that `x-systemd.automount` or any option other than the defaults behaves, and Debian trixie.
## Notes
- **Why only the fstab.** `ansible.posix.mount` with `state: mounted` mounts from the play's own process. Where that process runs in a private mount namespace (a hardened sshd unit can), systemd and containers do not see the mount. The role writes the line and reloads systemd, and the share is mounted at the next boot or with `systemctl start <unit>.mount`. New options reach a share that is already mounted only after it is remounted or the host reboots.
- **No owner, group or mode on the mount point.** Once a share is mounted the path is the export root, and a `chown` or `chmod` there changes the permissions on the NFS server. A new directory gets the system defaults, and an existing one is left as it is.
- **A share that is mounted and unreachable.** On a re-run the role looks at each `present` mount point, and a mounted path whose server is gone can block that look. Fix or unmount the share, or leave that entry out of the run, before running the role again.
- **`absent` leaves the share alone.** The entry's line is removed; the share stays mounted until it is unmounted and the mount point is not deleted.
- **Default options.** `_netdev` orders the mount after the network and puts it in `remote-fs.target`; `nofail` keeps an unreachable server from holding up the boot. `x-systemd.automount` changes when a mount appears and can hide an unreachable server until first access, so it is left to the host that wants it. The `docker` role's `docker_stop_at_shutdown` relies on the same `remote-fs.target` ordering.
- `--check` is the supported preview; a play-level `check_mode: true` is not supported. `apt` and the fstab edit both report what would change.
- Idempotent: yes.
+8
View File
@@ -0,0 +1,8 @@
---
# Each entry: src (server:/export) and path (absolute mount point) are required; opts falls back
# to nfs_client_default_opts; state is present (default) or absent.
nfs_client_mounts: []
# _netdev orders the mount after the network and puts it in remote-fs.target; nofail keeps an
# unreachable server from holding up the boot. x-systemd.automount is left to the host that wants it.
nfs_client_default_opts: "_netdev,nofail"
+7
View File
@@ -0,0 +1,7 @@
---
# systemd builds a mount unit from each fstab line only when it reloads, so the reload is what
# makes a changed line known to systemd. It mounts nothing.
- name: Reload systemd for the nfs_client fstab entries
become: true
ansible.builtin.systemd_service:
daemon_reload: true
+57
View File
@@ -0,0 +1,57 @@
---
argument_specs:
main:
short_description: Install the NFS client and manage NFS entries in /etc/fstab
description:
- >-
Asserts a Debian-family host, installs C(nfs-common), creates each mount point of a C(present) entry without
owner, group or mode, writes or removes the entry's line in C(/etc/fstab), and reloads systemd after a change
so that the mount unit is generated now. Nothing is mounted.
- >-
It never mounts or unmounts anything. An C(absent) entry only loses its fstab line: the share stays mounted
until it is unmounted or the host reboots, and the mount point is not removed. Needs gathered facts.
options:
nfs_client_mounts:
type: list
elements: dict
default: []
description:
- >-
The NFS mounts to manage. Each mount point may appear once. With the default (no entries) only the client
package is installed.
options:
src:
type: str
required: true
description:
- The export as C(server:/export), one word without spaces.
path:
type: str
required: true
description:
- >-
The mount point: an absolute path without spaces, not C(/) and without a trailing slash. Created, when
the entry is C(present), with no owner, group or mode.
opts:
type: str
description:
- >-
The fstab options, one comma-separated word without spaces. Falls back to C(nfs_client_default_opts)
when left out or empty. Put the NFS version here, for example C(vers=4.2).
state:
type: str
default: present
choices: [present, absent]
description:
- >-
C(present) writes the fstab line. C(absent) removes it and nothing else. The role has no C(mounted),
C(unmounted) or C(remounted): mounting is left to systemd, so that a mount made from a play running in a
private mount namespace (a hardened sshd unit) cannot go unseen by systemd and by containers.
nfs_client_default_opts:
type: str
default: "_netdev,nofail"
description:
- >-
Options for an entry that sets none. C(_netdev) orders the mount after the network and puts it in
C(remote-fs.target); C(nofail) keeps an unreachable server from holding up the boot.
C(x-systemd.automount) is not in the default.
+18
View File
@@ -0,0 +1,18 @@
---
galaxy_info:
role_name: nfs_client
namespace: mortis
author: Dragonish
license: GPL-3.0-or-later
description: Install the NFS client and manage NFS mount entries in /etc/fstab, without mounting anything.
min_ansible_version: "2.22"
platforms:
- name: Ubuntu
versions:
- noble
- resolute
galaxy_tags:
- nfs
- fstab
- storage
dependencies: []
@@ -0,0 +1,7 @@
---
# The mounts come from molecule.yml.
- name: Converge
hosts: all
gather_facts: true
roles:
- role: mortis.kamino.nfs_client
@@ -0,0 +1,75 @@
---
# Runs on the repository's own runner (label kamino-molecule), in the molecule-ubuntu2404
# (MOLECULE_IMAGE) and molecule-ubuntu2604 (MOLECULE_IMAGE_2604) images, pinned in
# .gitea/workflows/molecule.yml. Needs the Ubuntu mirrors: the role installs nfs-common. The
# containers run systemd as PID 1 with a writable cgroup, so a daemon-reload builds mount units
# from /etc/fstab; no privileged mode. Nothing is ever mounted: the server below does not exist.
driver:
name: docker
platforms:
- name: ${KAMINO_RUN_ID:-local}-nfs-client-noble
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
- name: ${KAMINO_RUN_ID:-local}-nfs-client-resolute
labels:
net.rkdr.mortis.molecule-run: "${KAMINO_RUN_ID:-local}"
image: ${MOLECULE_IMAGE_2604}
pre_build_image: true
pull: true
command: /sbin/init
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
tmpfs:
- /run
- /run/lock
security_opts:
- apparmor=unconfined
provisioner:
name: ansible
# One source for every play, so the converge and the plays in verify.yml start from the same
# valid input: a default-options mount, one with its own options, one to remove (prepare.yml
# seeds its line), and /mnt/data, whose seeded line has another server and must be replaced.
inventory:
group_vars:
all:
nfs_client_mounts:
- src: nas.example:/export/data
path: /mnt/data
- src: nas.example:/export/media
path: /mnt/media
opts: _netdev,nofail,ro,vers=4.2
- src: nas.example:/export/old
path: /mnt/old
state: absent
verifier:
name: ansible
scenario:
# molecule's default sequence minus both destroys (scripts/run_molecule_scenarios.sh removes the
# containers as soon as this scenario ends; after a local run, run `molecule destroy` yourself),
# plus a check before the converge (fresh host) and one after it (configured host).
test_sequence:
- dependency
- cleanup
- syntax
- create
- prepare
- check
- converge
- check
- idempotence
- side_effect
- verify
- cleanup
@@ -0,0 +1,43 @@
---
# The state a host has before the role runs: a line for /mnt/data that names another server (the
# role must replace it, once) and a line and a mount point for /mnt/old, the entry the converge
# removes. The file in /mnt/old shows that removing the line leaves the directory alone.
- name: Prepare
hosts: all
gather_facts: false
tasks:
# The image ships without apt lists, and --check does not refresh them, so without this the
# fresh-host check finds no nfs-common to install.
- name: Refresh the apt cache
ansible.builtin.apt:
update_cache: true
- name: Seed the fstab lines
ansible.builtin.lineinfile:
path: /etc/fstab
line: "{{ item }}"
create: true
mode: "0644"
loop:
- old-nas.example:/export/data /mnt/data nfs defaults 0 0
- nas.example:/export/old /mnt/old nfs _netdev,nofail 0 0
- name: Create the mount point that the converge leaves alone
ansible.builtin.file:
path: /mnt/old
state: directory
mode: "0750"
- name: Put a file in it
ansible.builtin.copy:
content: kept
dest: /mnt/old/keep
mode: "0644"
# An existing mount point of a present entry: the role must leave its owner and mode alone.
- name: Create a mount point with an owner and a mode of its own
ansible.builtin.file:
path: /mnt/media
state: directory
owner: daemon
mode: "0710"
@@ -0,0 +1,21 @@
---
# One failing run: includes the role with the inputs the caller sets on the include, and asserts
# that the expected message, not something else, stopped it. Input: nfs_client_test_case (name,
# expect).
- name: "Run the role, case {{ nfs_client_test_case.name }}"
block:
- name: "Include the role, case {{ nfs_client_test_case.name }}"
ansible.builtin.include_role:
name: mortis.kamino.nfs_client
# Only reached when the include returned. The message must not contain the expected
# text, so the rescue below cannot mistake it for the failure under test.
- name: "Fail because the include returned, case {{ nfs_client_test_case.name }}"
ansible.builtin.fail:
msg: The role accepted the input
rescue:
- name: "The expected failure stopped the run, case {{ nfs_client_test_case.name }}"
ansible.builtin.assert:
that: nfs_client_test_case.expect in (ansible_failed_result.msg | default(''))
fail_msg: "Expected '{{ nfs_client_test_case.expect }}', got: {{ ansible_failed_result.msg | default('') }}"
quiet: true
@@ -0,0 +1,247 @@
---
# The refusals below stop in validation, before any task that changes a host, so they need no
# container: they run once, on the controller, in check mode so that a regressed guard cannot
# change it.
#
# Runs first, before any play gathers facts: the role refuses a host it cannot identify as
# Debian-family, before any change.
- name: Refuse a host without facts
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the role without gathered facts
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_test_case:
name: no-facts
expect: nfs_client supports Debian-family hosts only
# Negative tests: each validation stops the role before any change, with its own message. The
# inputs replace the converge's mounts for one include only.
- name: Refuse invalid input
hosts: localhost
connection: local
check_mode: true
gather_facts: true
tasks:
- name: Refuse a state the role does not have
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, state: mounted}
nfs_client_test_case:
name: state-mounted
expect: "value of state must be one of: present, absent, got: mounted"
- name: Refuse remounted
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, state: remounted}
nfs_client_test_case:
name: state-remounted
expect: "value of state must be one of: present, absent, got: remounted"
- name: Refuse an entry without a src
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {path: /mnt/data}
nfs_client_test_case:
name: src-missing
expect: "missing required arguments: src"
- name: Refuse an empty src
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "", path: /mnt/data}
nfs_client_test_case:
name: src-empty
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a src without an export
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: nas.example, path: /mnt/data}
nfs_client_test_case:
name: src-no-export
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a src with a space after the export
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/my data", path: /mnt/data}
nfs_client_test_case:
name: src-space
expect: nfs_client_mounts src must be one word of the form server:/export
- name: Refuse a mount point with a space
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: "/mnt/my data"}
nfs_client_test_case:
name: path-space
expect: nfs_client_mounts path must be an absolute path
- name: Refuse a relative mount point
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: mnt/data}
nfs_client_test_case:
name: path-relative
expect: nfs_client_mounts path must be an absolute path
- name: Refuse the root as a mount point
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /}
nfs_client_test_case:
name: path-root
expect: nfs_client_mounts path must be an absolute path
- name: Refuse a trailing slash
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data/}
nfs_client_test_case:
name: path-trailing-slash
expect: nfs_client_mounts path must be an absolute path
- name: Refuse options with a space
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data, opts: "ro, nofail"}
nfs_client_test_case:
name: opts-space
expect: nfs_client_mounts options must be a non-empty comma-separated word
- name: Refuse an entry with no options when the default is empty
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_default_opts: ""
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data}
nfs_client_test_case:
name: opts-empty
expect: nfs_client_mounts options must be a non-empty comma-separated word
- name: Refuse the same mount point twice
ansible.builtin.include_tasks: tasks/failed_run.yml
vars:
nfs_client_mounts:
- {src: "nas.example:/export/data", path: /mnt/data}
- {src: "nas.example:/export/other", path: /mnt/data}
nfs_client_test_case:
name: duplicate-path
expect: nfs_client_mounts lists the same path twice
- name: Verify the host
hosts: all
gather_facts: true
tasks:
- name: Read the installed packages
ansible.builtin.package_facts:
manager: apt
- name: The client package is installed
ansible.builtin.assert:
that:
- "'nfs-common' in ansible_facts.packages"
quiet: true
- name: Read fstab
ansible.builtin.slurp:
src: /etc/fstab
register: nfs_client_test_fstab
# Each line split into its six fields, so the assertions do not depend on the spacing the
# module writes.
- name: Split the fstab lines into fields
ansible.builtin.set_fact:
nfs_client_test_rows: >-
{{ (nfs_client_test_fstab.content | b64decode).splitlines()
| reject('match', '^#')
| map('split')
| reject('equalto', [])
| list }}
# The seeded line for /mnt/data named another server and the default options: the role
# replaces it, so exactly one line is left for the path.
- name: The default-options entry replaced the seeded line
ansible.builtin.assert:
that:
- "['nas.example:/export/data', '/mnt/data', 'nfs', '_netdev,nofail', '0', '0'] in nfs_client_test_rows"
- nfs_client_test_rows | selectattr('1', 'eq', '/mnt/data') | list | length == 1
quiet: true
- name: The entry with its own options keeps them
ansible.builtin.assert:
that:
- "['nas.example:/export/media', '/mnt/media', 'nfs', '_netdev,nofail,ro,vers=4.2', '0', '0'] in nfs_client_test_rows"
quiet: true
- name: The absent entry lost its line
ansible.builtin.assert:
that:
- nfs_client_test_rows | selectattr('1', 'eq', '/mnt/old') | list | length == 0
quiet: true
- name: Stat the mount points
ansible.builtin.stat:
path: "{{ item }}"
loop: [/mnt/data, /mnt/media, /mnt/old, /mnt/old/keep]
register: nfs_client_test_stat
# prepare.yml gave /mnt/media an owner and a mode and /mnt/old a mode of its own. The role
# created /mnt/data (a new directory is root's) and changed neither of the others, and the
# removed entry's directory and the file in it are untouched.
- name: The mount points exist, keep their owner and mode, and the removed entry's directory is intact
ansible.builtin.assert:
that:
- nfs_client_test_stat.results | map(attribute='stat.exists') | min
- nfs_client_test_stat.results[0].stat.isdir
- nfs_client_test_stat.results[0].stat.pw_name == 'root'
- nfs_client_test_stat.results[1].stat.pw_name == 'daemon'
- nfs_client_test_stat.results[1].stat.mode == '0710'
- nfs_client_test_stat.results[2].stat.mode == '0750'
quiet: true
- name: Read what is mounted
ansible.builtin.slurp:
src: /proc/mounts
register: nfs_client_test_mounts
- name: Nothing was mounted
ansible.builtin.assert:
that:
- "'/mnt/data' not in (nfs_client_test_mounts.content | b64decode)"
- "'/mnt/media' not in (nfs_client_test_mounts.content | b64decode)"
quiet: true
# The daemon-reload is what turns an fstab line into a unit; the generator ran again, so the
# new lines have a unit and the removed one has none. systemctl and not the systemd module,
# which fails on a unit that is not loaded, the very state asserted for the removed entry.
- name: Ask systemd about the mount units # noqa: command-instead-of-module
ansible.builtin.command: "systemctl show --property=LoadState --value {{ item }}"
loop: [mnt-data.mount, mnt-media.mount, mnt-old.mount]
register: nfs_client_test_units
changed_when: false
check_mode: false
- name: Systemd knows the new entries and not the removed one
ansible.builtin.assert:
that:
- nfs_client_test_units.results[0].stdout == 'loaded'
- nfs_client_test_units.results[1].stdout == 'loaded'
- nfs_client_test_units.results[2].stdout == 'not-found'
quiet: true
+48
View File
@@ -0,0 +1,48 @@
---
# Validation first, under always, so a bad input fails before any change whatever tags the run
# selects.
- name: Validate the role inputs
ansible.builtin.import_tasks: validate.yml
tags: always
- name: Install the NFS client package
become: true
ansible.builtin.apt:
name: "{{ __nfs_client_package }}"
state: present
update_cache: true
cache_valid_time: 3600
tags: [nfs_client, install]
# No owner, group or mode: once a share is mounted the path is the export root, and a chown or
# chmod there changes the permissions on the NFS server.
- name: Create the mount points # noqa: risky-file-permissions
become: true
ansible.builtin.file:
path: "{{ item.path }}"
state: directory
loop: "{{ __nfs_client_entries | selectattr('state', 'eq', 'present') | list }}"
loop_control:
label: "{{ item.path }}"
tags: [nfs_client, configure]
# present writes the fstab line and mounts nothing. An absent entry only loses its line:
# ansible.posix.mount's own absent would also unmount the share and delete the mount point.
- name: Manage the fstab entries
become: true
ansible.posix.mount:
src: "{{ item.src }}"
path: "{{ item.path }}"
fstype: nfs
opts: "{{ item.opts }}"
dump: "0"
passno: "0"
state: "{{ 'present' if item.state == 'present' else 'absent_from_fstab' }}"
loop: "{{ __nfs_client_entries }}"
loop_control:
label: "{{ item.path }}"
notify: Reload systemd for the nfs_client fstab entries
tags: [nfs_client, configure]
- name: Flush handlers
ansible.builtin.meta: flush_handlers
+73
View File
@@ -0,0 +1,73 @@
---
# Input checks. Imported first in main.yml with tags: always, so a bad input fails before any
# change. The argument spec (types, choices, required keys) runs before this file; the rules
# below are the ones between values. Each assert covers the whole list, not one item per loop
# pass, so the failure message is the assert's own. fstab fields are split on whitespace, so
# "one word" is tested with split rather than a pattern.
# The package and the fstab format are Debian's, and the role reads gathered facts.
- name: Require a Debian-family host
ansible.builtin.assert:
that:
- ansible_facts['os_family'] | default('') == 'Debian'
fail_msg: >-
nfs_client supports Debian-family hosts only (found: {{ ansible_facts['os_family'] | default('no gathered facts') }}).
The role reads gathered facts, so run it in a play that gathers them.
quiet: true
# Fact-computing tasks that the checks below read. A statement block in one template would leave
# whitespace around the result and make it a string instead of a list, so the list is built by
# appending one entry per pass.
- name: Start the resolved entries
ansible.builtin.set_fact:
__nfs_client_entries: []
# Defaults of the suboptions are applied here: the spec's suboption defaults are documentation.
- name: Resolve the entries
ansible.builtin.set_fact:
__nfs_client_entries: >-
{{ __nfs_client_entries + [{
'src': item.src | trim,
'path': item.path,
'opts': (item.opts | default('', true) | trim) or (nfs_client_default_opts | trim),
'state': item.state | default('present', true)
}] }}
loop: "{{ nfs_client_mounts }}"
loop_control:
label: "{{ item.path }}"
- name: Require a server and an export in every src
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='src') | map('split') | map('length') | reject('eq', 1) | list | length == 0
- __nfs_client_entries | map(attribute='src') | reject('search', '^[^ ]+:/') | list | length == 0
fail_msg: >-
nfs_client_mounts src must be one word of the form server:/export, without spaces
(offending: {{ __nfs_client_entries | map(attribute='src') | reject('search', '^[^ ]+:/') | list }}).
quiet: true
- name: Require an absolute mount point that is not the root
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='path') | map('split') | map('length') | reject('eq', 1) | list | length == 0
- __nfs_client_entries | map(attribute='path') | reject('search', '^/[^ ]*[^/ ]$') | list | length == 0
fail_msg: >-
nfs_client_mounts path must be an absolute path without spaces, not the root and without a trailing slash
(offending: {{ __nfs_client_entries | map(attribute='path') | reject('search', '^/[^ ]*[^/ ]$') | list }}).
quiet: true
- name: Require options that fit one fstab field
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='opts') | map('split') | map('length') | reject('eq', 1) | list | length == 0
fail_msg: >-
nfs_client_mounts options must be a non-empty comma-separated word without spaces, from the entry's opts or, when
that is empty, from nfs_client_default_opts.
quiet: true
- name: Require one entry per mount point
ansible.builtin.assert:
that:
- __nfs_client_entries | map(attribute='path') | unique | list | length == __nfs_client_entries | length
fail_msg: nfs_client_mounts lists the same path twice; each mount point may appear once.
quiet: true
+3
View File
@@ -0,0 +1,3 @@
---
# Constant, not an input: the package that carries mount.nfs on Debian and Ubuntu.
__nfs_client_package: nfs-common
+2 -2
View File
@@ -98,8 +98,8 @@
- name: The user is a system account without a login shell
ansible.builtin.assert:
that:
- getent_passwd.pihole[5] == '/usr/sbin/nologin'
- getent_passwd.pihole[1] | int < 1000
- ansible_facts['getent_passwd'].pihole[5] == '/usr/sbin/nologin'
- ansible_facts['getent_passwd'].pihole[1] | int < 1000
quiet: true
# Neither check run (before and after the converge) ran the installer or the handler.
+2 -2
View File
@@ -61,8 +61,8 @@ The role defines none.
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). Both images ship openssh-server. It runs `check` before the converge (a fresh host) and after it (a configured host).
- Converge applies the `ubuntu_lxc` profile. It then loads the defaults through `tasks_from: validate.yml` without changing the host: every profile (`pve`, `ubuntu_lxc`, `ubuntu_vm`) passes validation and keeps its root login policy and key algorithms, a consumer `sshd_settings` override wins over the profile, and the `pve` guard accepts each value that allows root key login.
- Verify first checks the refusals: a run without `sshd_profile`, `PubkeyAuthentication no` (lock-out), a `pve` profile with `PermitRootLogin no` or `forced-commands-only`, a `pve` profile without `rsa-sha2-512`, SHA-1 `ssh-rsa`, and an unknown profile. Each but the missing profile is matched on its message.
- Converge applies the `ubuntu_lxc` profile. Verify first loads the defaults on the controller through `tasks_from: validate.yml`: every profile (`pve`, `ubuntu_lxc`, `ubuntu_vm`) passes validation and keeps its root login policy and key algorithms, a consumer `sshd_settings` override wins over the profile, and the `pve` guard accepts each value that allows root key login.
- Verify then checks the refusals: a run without `sshd_profile`, `PubkeyAuthentication no` (lock-out), a `pve` profile with `PermitRootLogin no` or `forced-commands-only`, a `pve` profile without `rsa-sha2-512`, SHA-1 `ssh-rsa`, and an unknown profile. Each but the missing profile is matched on its message.
- Verify then checks the converged host: the drop-in exists, `sshd -t` passes, the `ssh` unit is active, and `sshd -T` shows key login on and password and root login off.
- The `pve` profile is checked by rendering its drop-in to a scratch file and parsing it with `sshd -T -f`: root logs in with keys only and passwords stay off.
-70
View File
@@ -7,73 +7,3 @@
ansible_user: root
roles:
- role: mortis.kamino.sshd
# The plays below only load the role's defaults and run validate.yml, which changes nothing
# on the container. They cover the profiles the converge above cannot run and the values
# the guards accept.
- name: Every profile passes validation and keeps its root login policy
hosts: all
gather_facts: false
tasks:
- name: Validate each profile
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
public: true
vars:
sshd_profile: "{{ item }}"
loop: [pve, ubuntu_lxc, ubuntu_vm]
- name: Assert the profile data
ansible.builtin.assert:
that:
- sshd_profiles.pve.PermitRootLogin == "prohibit-password"
- sshd_profiles.ubuntu_lxc.PermitRootLogin == "no"
- sshd_profiles.ubuntu_vm.PermitRootLogin == "no"
quiet: true
# Proxmox cluster SSH needs RSA with SHA-2, never SHA-1 ssh-rsa; the others stay ed25519 only.
- name: Assert the key algorithms per profile
ansible.builtin.assert:
that:
- sshd_profiles.pve.HostKeyAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
- sshd_profiles.pve.PubkeyAcceptedAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
- sshd_settings_defaults.HostKeyAlgorithms == "ssh-ed25519"
- sshd_settings_defaults.PubkeyAcceptedAlgorithms == "ssh-ed25519"
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_lxc"
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_vm"
quiet: true
# Play vars outrank the role defaults, so the override reaches the merged settings.
- name: A consumer override wins and keeps the rest
hosts: all
gather_facts: false
vars:
sshd_profile: ubuntu_vm
sshd_settings:
MaxAuthTries: "5"
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
public: true
- name: Assert the override
ansible.builtin.assert:
that:
- sshd_settings_effective.MaxAuthTries == "5"
- sshd_settings_effective.PermitRootLogin == "no"
- sshd_settings_effective.PubkeyAuthentication == "yes"
quiet: true
- name: The Proxmox guard accepts every value that allows root key login
hosts: all
gather_facts: false
tasks:
- name: Validate the pve profile with each accepted value
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
vars:
sshd_profile: pve
sshd_settings:
PermitRootLogin: "{{ item }}"
loop: [prohibit-password, without-password, "yes", Prohibit-Password]
+78 -1
View File
@@ -1,6 +1,83 @@
---
# The plays below only load the role's defaults and run validate.yml, which needs no container,
# so they run once, on the controller, in check mode so that a regressed guard cannot change it.
# They cover the profiles converge.yml cannot run and the values the guards accept.
- name: Every profile passes validation and keeps its root login policy
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Validate each profile
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
public: true
vars:
sshd_profile: "{{ item }}"
loop: [pve, ubuntu_lxc, ubuntu_vm]
- name: Assert the profile data
ansible.builtin.assert:
that:
- sshd_profiles.pve.PermitRootLogin == "prohibit-password"
- sshd_profiles.ubuntu_lxc.PermitRootLogin == "no"
- sshd_profiles.ubuntu_vm.PermitRootLogin == "no"
quiet: true
# Proxmox cluster SSH needs RSA with SHA-2, never SHA-1 ssh-rsa; the others stay ed25519 only.
- name: Assert the key algorithms per profile
ansible.builtin.assert:
that:
- sshd_profiles.pve.HostKeyAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
- sshd_profiles.pve.PubkeyAcceptedAlgorithms == "ssh-ed25519,rsa-sha2-512,rsa-sha2-256"
- sshd_settings_defaults.HostKeyAlgorithms == "ssh-ed25519"
- sshd_settings_defaults.PubkeyAcceptedAlgorithms == "ssh-ed25519"
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_lxc"
- "'HostKeyAlgorithms' not in sshd_profiles.ubuntu_vm"
quiet: true
# Play vars outrank the role defaults, so the override reaches the merged settings.
- name: A consumer override wins and keeps the rest
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
sshd_profile: ubuntu_vm
sshd_settings:
MaxAuthTries: "5"
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
public: true
- name: Assert the override
ansible.builtin.assert:
that:
- sshd_settings_effective.MaxAuthTries == "5"
- sshd_settings_effective.PermitRootLogin == "no"
- sshd_settings_effective.PubkeyAuthentication == "yes"
quiet: true
- name: The Proxmox guard accepts every value that allows root key login
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Validate the pve profile with each accepted value
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: validate.yml
vars:
sshd_profile: pve
sshd_settings:
PermitRootLogin: "{{ item }}"
loop: [prohibit-password, without-password, "yes", Prohibit-Password]
# The refusal cases: here, not in converge.yml, because idempotence reruns converge. Each
# fails in validate.yml; they run first, so the assertions below also show the host unchanged.
# fails in validate.yml; they run before the host checks, so the assertions below also show the
# host unchanged.
# A play without sshd_profile: the role must refuse it. The block proves the refusal
# (not its wording).
+19 -7
View File
@@ -12,7 +12,7 @@ The role targets Ubuntu guests (the `ubuntu_lxc` and `ubuntu_vm` profiles) and P
## Requirements and run order
- Facts must be gathered (`gather_facts: true`); `reboot.yml` reads `ansible_os_family`.
- Facts must be gathered (`gather_facts: true`); `reboot.yml` reads `ansible_facts['os_family']`.
- `system_baseline_system_type` is required and has no default (the role does not read a global such as `system_type`; map it in the inventory). Valid values: `ubuntu_lxc`, `ubuntu_vm` or `pve`.
- Use it by its fully qualified name, `mortis.kamino.system_baseline`.
- Collections: `community.general` (locale, timezone) and `ansible.posix` (sysctl, mount).
@@ -39,12 +39,13 @@ templating error instead of the role's own message.
| `system_baseline_extra_remove_packages` | `[]` | no | Packages to purge in addition to the resolved list; appends |
| `system_baseline_apt_periodic_settings` | from profile | no | Keys for `20auto-upgrades` |
| `system_baseline_apt_upgrade` | from profile | no | `safe` or `dist`: how the role upgrades packages (`pve`: `dist`, the Ubuntu profiles: `safe`); see "Apt upgrade mode" |
| `system_baseline_skip_upgrade_during_vzdump` | `false` | no | `pve` only: skip the apt upgrade while a vzdump backup is running on the node (see "Skipping the upgrade during a backup") |
| `system_baseline_unattended_upgrade_settings` | from profile | no | Keys for `50unattended-upgrades` |
| `system_baseline_unattended_upgrade_origins` | from profile | no | Pinned `Origins-Pattern` entries; `[]` keeps the distribution default (see below) |
| `system_baseline_unattended_upgrade_package_blacklist` | `[]` | no | Packages unattended-upgrades must not touch, as regular expressions (see below) |
| `system_baseline_sysctl_hardening` | from profile | no | List of `name` and `value` sysctl pairs |
| `system_baseline_secure_tmp_mounts` | from profile | no | Paths remounted as tmpfs with `noexec,nosuid,nodev` |
| `system_baseline_journal_max_use` | `200M` | no | Upper bound of the persistent journal (journald `SystemMaxUse`): a number and `K`, `M`, `G` or `T`, or `infinity`. Empty leaves the host alone and removes nothing a former run wrote (see "Leaving journald alone") |
| `system_baseline_journal_max_use` | `200M` | no | Upper bound of the persistent journal (journald `SystemMaxUse`): a number with an optional upper-case `B`, `K`, `M`, `G`, `T`, `P` or `E`, such as `1.5G`; a bare number is bytes. journald does not take `infinity`. Empty leaves the host alone and removes nothing a former run wrote (see "Leaving journald alone") |
| `system_baseline_tmux_autostart` | `false` | no | Attach interactive SSH logins to a tmux session (`ubuntu_lxc` and `ubuntu_vm` only) |
| `system_baseline_tmux_session` | `main` | no | Session name, `A-Za-z0-9_-`, up to 32 characters |
| `system_baseline_tmux_windows` | `[]` | no | `{name, command}` windows made when the session is created |
@@ -128,12 +129,13 @@ The two task files besides `main` are a supported interface, for a caller that d
The scenario `molecule/default/` runs in CI only, on two platforms: `${MOLECULE_IMAGE}` (Ubuntu 24.04) and `${MOLECULE_IMAGE_2604}` (Ubuntu 26.04). It installs packages from the Ubuntu mirrors, so the runner needs outbound network. It runs `check` before the converge (a fresh host) and after it (a configured host).
- Converge first checks that the role refuses a bad input with its own message before any change: an unknown `system_baseline_system_type`, an unknown `system_baseline_apt_upgrade` (main flow and `update` entry point), a negative reboot throttle or a negative or boolean post-reboot delay (main flow and `reboot` entry point), a line break in `system_baseline_apt_daily_timeout`, a bad `system_baseline_journal_max_use` (a bare number, a space, a line break, a number), and a bad package blacklist (a quote, a null item, a bare string).
- Converge then applies the `ubuntu_lxc` profile, with tmux autostart and `system_baseline_apt_daily_timeout: 1h`, and only resolves the `pve` and `ubuntu_vm` profiles and a consumer override, asserting the resolved inputs.
- Verify first checks, on the controller, that the role refuses a bad input with its own message before any change: an unknown `system_baseline_system_type`, an unknown `system_baseline_apt_upgrade` (main flow and `update` entry point), a negative reboot throttle or a negative or boolean post-reboot delay (main flow and `reboot` entry point), a line break in `system_baseline_apt_daily_timeout`, a bad `system_baseline_journal_max_use` (`infinity`, a lower-case unit, a unit with a trailing `B`, a line break, a number), and a bad package blacklist (a quote, a null item, a bare string).
- Converge applies the `ubuntu_lxc` profile, with tmux autostart and `system_baseline_apt_daily_timeout: 1h`. Verify only resolves the `pve` and `ubuntu_vm` profiles and a consumer override, on the controller, asserting the resolved inputs.
- Verify checks the installed and removed packages, the journal size cap, the apt settings in `20auto-upgrades` and `50unattended-upgrades`, the locale, and that systemd loaded the `apt-daily.service` timeout.
- Verify checks the tmux snippet: root-owned, valid shell, the session and quoted window command, no effect without a terminal, a session name or window command ending in a newline refused, and the file removed when autostart is off.
- Converge refuses bad items in `system_baseline_extra_packages` and `system_baseline_extra_remove_packages` (whitespace, a null, an empty string, a trailing minus, upper case, a bare string) and a package that one input installs and another purges, then applies the `ubuntu_lxc` profile with `jq` as an extra package and `ed` as an extra removal; verify checks that `jq` is installed, `ed` is gone and the profile's packages are still there, and that an extra `tmux` installs the snippet where a flat list without it installs none.
- Converge also checks that a bad `system_baseline_apt_tmpdir` (under `/tmp` or `/var/tmp`, relative, with `..`, empty) is refused in the main flow and in the `update` entry point. Verify reads `tasks/update.yml` and checks that the scratch directory is created with mode `0700`, that both apt tasks set `TMPDIR` to it, and that the connection is reset afterwards: the scenario skips the `update` tag, so the upgrade itself never runs there.
- Verify refuses bad items in `system_baseline_extra_packages` and `system_baseline_extra_remove_packages` (whitespace, a null, an empty string, a trailing minus, upper case, a bare string) and a package that one input installs and another purges; converge applies the `ubuntu_lxc` profile with `jq` as an extra package and `ed` as an extra removal; verify checks that `jq` is installed, `ed` is gone and the profile's packages are still there, and that an extra `tmux` installs the snippet where a flat list without it installs none.
- Verify also checks that a bad `system_baseline_apt_tmpdir` (under `/tmp` or `/var/tmp`, relative, with `..`, empty) is refused in the main flow and in the `update` entry point. It reads `tasks/update.yml` and checks that the scratch directory is created with mode `0700`, that both apt tasks set `TMPDIR` to it, that the connection is reset afterwards, and that the vzdump guard is imported before the upgrade, whose `when` reads the guard's fact: the scenario skips the `update` tag, so the upgrade itself never runs there.
- Verify runs the vzdump guard in check mode on the Ubuntu container with `system_baseline_system_type: pve` and a `pvesh` stub, in seven cases (a running, a finished or no vzdump task, the input off, `ubuntu_lxc`); six run the guard's task file alone and the `ubuntu_lxc` case runs the whole `update` entry point. Each case asserts the fact that decides the upgrade and that `pvesh` was run, with `--source active`, only when it should be. It does not assert that the apt task itself was skipped. The stub stands for the real answer, which no CI image has.
- Verify ends by running the role once with `system_baseline_journal_max_use: ""` after removing the drop-in, and asserts that no drop-in is written and that `systemd-journald` was not restarted.
- Verify runs the `reboot` entry point with `system_baseline_reboot_if_required: false`, without and with `/var/run/reboot-required`, and checks the fact and that the host did not reboot.
- The `pve` origins pin is applied to the Ubuntu container and read back with `apt-config dump`, then removed again. The package blacklist is written, read back as a list, left alone by a second run and removed by an empty list.
@@ -159,6 +161,7 @@ system_baseline_extra_remove_packages: [telnet]
```
- Each item is a Debian package name: lower-case letters, digits, `+`, `-` and `.`, two or more characters, starting with a letter or digit and not ending in `-` (apt reads a trailing minus as a removal). Anything else stops the run. Duplicates of the profile list are harmless.
- The role does not refresh an APT cache younger than an hour, so a package from a source you add just before the role (`ansible.builtin.deb822_repository` does not refresh) needs your own cache refresh first.
- An extra counts wherever the role looks for a package in the list: an extra `tmux` enables the tmux snippet and an extra `unattended-upgrades` the unattended-upgrades tasks, as a profile package does.
- A package that one input installs and another purges stops the run before any change: `system_baseline_extra_packages` against `system_baseline_remove_packages` or `system_baseline_extra_remove_packages`, and `system_baseline_extra_remove_packages` against `system_baseline_essential_packages`. The resolved lists are not checked against each other, so a consumer's own overlap there behaves as before.
@@ -212,9 +215,18 @@ The profile key `apt_upgrade` (`safe` or `dist`, resolved to `system_baseline_ap
- The `update` entry point follows the same input: it upgrades with `dist` when `system_baseline_system_type` is `pve`. Without a `system_baseline_system_type` (the entry point does not require one) it stays on `safe`.
- Only the apt upgrade changes. Autoremove and autoclean, the check-mode skip and unattended-upgrades are as before; the example blacklist below keeps unattended-upgrades away from the Proxmox packages.
### Skipping the upgrade during a backup
An upgrade of a Proxmox node can restart Proxmox services while a backup holds a snapshot of a guest. With `system_baseline_skip_upgrade_during_vzdump: true` and `system_baseline_system_type: pve`, the role runs `pvesh get /nodes/localhost/tasks --source active --limit 0` before the upgrade (`--source active` lists the running tasks; the default, `archive`, holds only finished ones). When one of the listed tasks has the type `vzdump` and no `endtime`, the upgrade is skipped and a message says why; autoremove, autoclean and the reboot check still run, and the role does not wait for the backup, so run it again afterwards.
- Off by default. With `false`, or on any other system type, no `pvesh` command runs.
- The `update` entry point reads the input as well. In check mode the main flow skips the upgrade itself, so it does not ask for the tasks; the entry point previews the upgrade and so asks.
- `localhost` is the node's own alias in the Proxmox API, so the role needs neither a node name nor gathered facts.
- A `pvesh` answer that is not a JSON list stops the run, instead of upgrading on a guess.
### Leaving journald alone
`system_baseline_journal_max_use: ""` skips the journald task: no drop-in directory, no `50-system-baseline.conf` and no restart of `systemd-journald`. Use it where another drop-in, role or policy owns the journal size. A file an earlier run wrote stays, as for an empty `system_baseline_apt_daily_timeout`; remove it by hand if the cap should go. A value that is not empty and not a size (`300`, `0`, `10 M`, one with a line break) stops the run before any change, in the same way as the apt-daily value.
`system_baseline_journal_max_use: ""` skips the journald task: no drop-in directory, no `50-system-baseline.conf` and no restart of `systemd-journald`. Use it where another drop-in, role or policy owns the journal size. A file an earlier run wrote stays, as for an empty `system_baseline_apt_daily_timeout`; remove it by hand if the cap should go. A value that is not empty and not a size journald reads (`infinity`, `10m`, one with a line break) stops the run before any change, in the same way as the apt-daily value.
### Apt scratch directory
+3
View File
@@ -18,6 +18,9 @@ system_baseline_apt_tmpdir: /var/cache/system-baseline-apt-tmp
# Run the package update (tasks/update.yml) in the main flow. false skips it, for hosts that are patched by a separate,
# operator-run flow; the tasks_from: update entry point does not read it.
system_baseline_update: true
# Skip the apt upgrade while a vzdump backup is running on the Proxmox node (tasks/update.yml). Only for system_baseline_system_type pve;
# both the main flow and the tasks_from: update entry point read it. Off by default.
system_baseline_skip_upgrade_during_vzdump: false
# Upper bound of the persistent journal (journald SystemMaxUse); older archived files are removed above it. Empty leaves the host alone
# (tasks/journald.yml is not run; a drop-in an earlier run wrote stays).
system_baseline_journal_max_use: 200M
+20 -4
View File
@@ -7,7 +7,7 @@ argument_specs:
Validates C(system_baseline_system_type) and, when C(system_baseline_tmux_autostart) is true, the tmux session name and
windows, then runs the update (unless C(system_baseline_update) is false), packages, unattended-upgrades, locale, timezone,
journald, apt-daily timeout (when set), sysctl, tmpfs, tmux and reboot task files, in that order.
- Needs gathered facts, because the reboot check reads C(ansible_os_family).
- Needs gathered facts, because the reboot check reads C(ansible_facts['os_family']).
- >-
The resolved inputs C(system_baseline_profile), C(system_baseline_essential_packages),
C(system_baseline_remove_packages), C(system_baseline_apt_periodic_settings), C(system_baseline_apt_upgrade),
@@ -56,8 +56,9 @@ argument_specs:
- Upper bound of the persistent systemd journal (journald C(SystemMaxUse), for example C(200M)).
- Written to a drop-in under C(/etc/systemd/journald.conf.d).
- >-
A number and one of C(K), C(M), C(G), C(T), or C(infinity); anything else (a bare number, a space, a line break) is refused
before any change. Empty leaves the host alone: no drop-in is written and journald is not restarted.
A size journald reads, a number with an optional upper-case unit C(B), C(K), C(M), C(G), C(T), C(P) or C(E) (a bare number
is bytes); anything else (C(infinity), a lower-case unit, a line break) is refused before any change. Empty leaves the host
alone: no drop-in is written and journald is not restarted.
Clearing the value later does not remove a file already written.
system_baseline_tmux_autostart:
type: bool
@@ -188,6 +189,18 @@ argument_specs:
the reboot.
- The C(update) entry point does not read it.
- In check mode the main flow skips the upgrade itself (a pending update is not drift); autoremove and autoclean are still checked.
system_baseline_skip_upgrade_during_vzdump:
type: bool
default: false
description:
- >-
Skip the apt upgrade while a vzdump backup is running on the Proxmox node. Acts only when C(system_baseline_system_type) is
C(pve): the role runs C(pvesh get /nodes/localhost/tasks --source active), and a C(vzdump) task in that list is a running backup.
The upgrade is then skipped with a message, and the rest of the flow (autoremove, the reboot check) goes on. It does not wait for
the backup. With false, or on any other system type, no C(pvesh) command runs.
- >-
The C(update) entry point reads it too, and a C(pvesh) answer that is not a JSON list fails the run instead of upgrading. In check mode the
main flow skips the upgrade itself, so it does not ask for the tasks.
update:
short_description: Update and upgrade apt packages
description:
@@ -202,6 +215,9 @@ argument_specs:
It creates C(system_baseline_apt_tmpdir), runs the upgrade and the autoremove with C(TMPDIR) set to it, and then opens a new
connection, so that a restart of C(ssh.service) during the upgrade does not remove the files apt needs. It reads that input
although the entry point has no argument specification of its own.
- >-
It also reads C(system_baseline_skip_upgrade_during_vzdump): with true on C(system_baseline_system_type) C(pve) it skips the upgrade while
a vzdump backup is running.
reboot:
short_description: Compute system_baseline_reboot_required and reboot when allowed
description:
@@ -213,7 +229,7 @@ argument_specs:
never reboots, so a caller can read C(system_baseline_reboot_required) (bool) and reboot on its own terms, for example after
draining a node. The fact name and this behaviour are part of the role's interface.
- On a non-Debian host the fact is not set; read it with C(default(false)).
- Reads C(ansible_os_family), so facts must be gathered.
- Reads C(ansible_facts['os_family']), so facts must be gathered.
options:
system_baseline_reboot_if_required:
type: bool
@@ -1,184 +1,8 @@
---
- name: Refuse an unknown system_baseline_system_type
hosts: all
gather_facts: false
tasks:
- name: Run the role with a bad system_baseline_system_type
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: not_a_type
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_system_type
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'is invalid' in ansible_failed_result.msg | default('')"
quiet: true
# The apt upgrade mode is safe or dist: anything else (here `full`, an apt module value the role does not offer) stops the run before
# any change, with a message that names the input.
- name: An unknown apt upgrade mode is refused
hosts: all
gather_facts: false
tasks:
- name: Run the role with a bad system_baseline_apt_upgrade
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_apt_upgrade: full
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_apt_upgrade
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_upgrade is' in ansible_failed_result.msg | default('')"
quiet: true
# The update entry point does not run validate.yml, so it checks the mode itself and stops before it calls the package module.
- name: The update entry point refuses an unknown apt upgrade mode
hosts: all
gather_facts: false
tasks:
- name: Run the update entry point with a bad system_baseline_apt_upgrade
block:
- name: Include system_baseline, tasks_from update
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: update
vars:
system_baseline_apt_upgrade: full
- name: Unreachable when validation works
ansible.builtin.fail:
msg: the update entry point ran with an invalid system_baseline_apt_upgrade
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_upgrade is' in ansible_failed_result.msg | default('')"
quiet: true
# The apt scratch directory becomes TMPDIR of the upgrade: a path under /tmp or /var/tmp (which a restart of ssh.service can delete), a relative
# path and a `..` each stop the run before any change, in the main flow and in the update entry point (which does not run validate.yml).
- name: A bad apt scratch directory is refused
hosts: all
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_apt_tmpdir_entries.yml
vars:
system_baseline_refused_tmpdir: "{{ item }}"
loop:
- /tmp
- /var/tmp/apt
- /var/cache/../../tmp/x
- var/cache/apt-tmp
- ""
# The reboot inputs are whole numbers, 0 or more: a negative number and a boolean each stop the run before a host reboots,
# in the main flow and in the reboot entry point (which does not run validate.yml).
- name: A bad reboot throttle or post-reboot delay is refused
hosts: all
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_reboot.yml
vars:
system_baseline_refused_reboot: "{{ item }}"
loop:
- {system_baseline_reboot_throttle: -1}
- {system_baseline_reboot_post_delay: -5}
- {system_baseline_reboot_post_delay: true}
# The value is written into a unit file, so a line break (a second directive) is refused.
- name: A bad apt-daily timeout is refused
hosts: all
gather_facts: false
tasks:
- name: Run the role with a line break in system_baseline_apt_daily_timeout
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_apt_daily_timeout: "1h\nExecStart=/bin/true"
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_apt_daily_timeout
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_daily_timeout must be' in ansible_failed_result.msg | default('')"
quiet: true
# The journal cap is a number and a unit letter, or empty: a bare number (journald would read bytes), a zero, a space, a line break, a
# lower-case unit and a number that is not a string each stop the run before any change.
- name: A bad journal size cap is refused
hosts: all
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_journal_max_use.yml
vars:
system_baseline_refused_journal: "{{ item }}"
loop:
- "300"
- "0"
- 10 M
- "10m"
- "200M\nStorage=none"
- 300
# A quote, a null item and a bare string (not a list) each stop the run: the bare string would otherwise be split into one-character
# patterns, and the null item would become an empty pattern that matches every package.
- name: A bad package blacklist is refused
hosts: all
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_blacklist.yml
vars:
system_baseline_refused_blacklist: "{{ item }}"
loop:
- ['bad"name']
- [null]
- linux-image-.*
# Items that are not Debian package names (whitespace, null, empty, a trailing minus that apt reads as a removal, an option, upper case, a
# version pin), and a package that one input installs and another purges, each stop the run before any change.
# The overlaps are: an extra install against the profile's remove list (telnet), an extra install against an extra remove, and an extra
# remove against the profile's install list (tmux).
- name: A bad extra package list is refused
hosts: all
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_extra_packages.yml
vars:
system_baseline_refused_case: "{{ item }}"
loop:
- { install: ['bad name'], expect: 'must be lists of package names' }
- { install: [null], expect: 'must be lists of package names' }
- { install: jq, expect: 'must be lists of package names' }
- { remove: [''], expect: 'must be lists of package names' }
- { install: ['jq-'], expect: 'must be lists of package names' }
- { install: ['-y'], expect: 'must be lists of package names' }
- { remove: ['Telnet'], expect: 'must be lists of package names' }
- { remove: ['ed=1.0'], expect: 'must be lists of package names' }
- { install: [telnet], expect: 'is both installed and purged' }
- { install: [jq], remove: [jq], expect: 'is both installed and purged' }
- { remove: [tmux], expect: 'is both installed and purged' }
- name: Converge the LXC profile
hosts: all
gather_facts: true
gather_subset: [min]
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_extra_packages: [jq]
@@ -190,130 +14,3 @@
- { name: logs, command: "echo 'a b'; true" }
roles:
- role: mortis.kamino.system_baseline
# The remaining plays only load the role's defaults (validate.yml changes nothing) and assert
# the resolved inputs. They cover the profiles the converge above cannot run.
- name: The pve profile resolves
hosts: all
gather_facts: false
vars:
system_baseline_system_type: pve
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the pve profile
ansible.builtin.assert:
that:
- "'ufw' not in system_baseline_essential_packages"
- "'tmux' not in system_baseline_essential_packages"
- "'unattended-upgrades' in system_baseline_essential_packages"
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == false
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '03:00'
- system_baseline_secure_tmp_mounts == ['/dev/shm', '/tmp', '/var/tmp']
- system_baseline_update
- system_baseline_apt_upgrade == 'dist'
- system_baseline_unattended_upgrade_origins | length == 3
- system_baseline_unattended_upgrade_origins | select('search', 'Proxmox') | list == []
- __system_baseline_install_packages == system_baseline_essential_packages
- __system_baseline_purge_packages == system_baseline_remove_packages
quiet: true
- name: The ubuntu_vm profile resolves
hosts: all
gather_facts: false
vars:
system_baseline_system_type: ubuntu_vm
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the ubuntu_vm profile
ansible.builtin.assert:
that:
- "'qemu-guest-agent' in system_baseline_essential_packages"
- "'tmux' in system_baseline_essential_packages"
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == false
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '04:00'
- system_baseline_sysctl_hardening | selectattr('name', 'equalto', 'net.ipv4.conf.all.log_martians') | list | length == 1
- system_baseline_apt_upgrade == 'safe'
- system_baseline_unattended_upgrade_origins == []
- __system_baseline_install_packages == system_baseline_essential_packages
- __system_baseline_purge_packages == system_baseline_remove_packages
quiet: true
# Consumer play vars override the profile.
- name: Consumer overrides win over the profile
hosts: all
gather_facts: false
vars:
system_baseline_system_type: ubuntu_vm
system_baseline_remove_packages: [telnet]
system_baseline_apt_upgrade: dist
system_baseline_profile_overrides:
ubuntu_vm:
unattended_upgrade_settings:
"Unattended-Upgrade::Automatic-Reboot": true
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the overrides
ansible.builtin.assert:
that:
- system_baseline_remove_packages == ['telnet']
- system_baseline_apt_upgrade == 'dist'
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == true
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '04:00'
- "'qemu-guest-agent' in system_baseline_essential_packages"
quiet: true
# The extras append to the resolved lists, whether the profile's list or a flat input supplies them, and a name that is in both is listed once.
- name: Extra packages append to the resolved lists
hosts: all
gather_facts: false
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_essential_packages: [vim, curl]
system_baseline_extra_packages: [jq, vim, unattended-upgrades]
system_baseline_extra_remove_packages: [ed, telnet]
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the lists the role acts on
ansible.builtin.assert:
that:
- __system_baseline_install_packages == ['vim', 'curl', 'jq', 'unattended-upgrades']
- "'ed' in __system_baseline_purge_packages"
- __system_baseline_purge_packages | select('equalto', 'telnet') | list | length == 1
- system_baseline_remove_packages | difference(__system_baseline_purge_packages) | length == 0
quiet: true
# A flat input that is a plain string (the package module accepts one) still counts as a one-item list, with and without extras.
- name: A flat string package list still resolves
hosts: all
gather_facts: false
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_essential_packages: vim
system_baseline_extra_packages: [jq]
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the lists the role acts on
ansible.builtin.assert:
that:
- __system_baseline_install_packages == ['vim', 'jq']
quiet: true
@@ -0,0 +1,62 @@
---
# One case of the vzdump guard: a pvesh stub answers with system_baseline_case.answer, the role's tasks_from file (the guard alone unless the
# case names update) runs in check mode, and the fact that decides the upgrade, and whether pvesh was asked at all, are compared with what the
# case expects. Kept outside the role's own tasks: no CI image is a Proxmox node, so the stub stands for the real `pvesh get` answer.
- name: Write the pvesh stub
check_mode: false
ansible.builtin.copy:
dest: /usr/local/bin/pvesh
mode: "0755"
content: |
#!/bin/sh
echo "$*" >> /var/tmp/pvesh-calls
cat <<'JSON'
{{ system_baseline_case.answer | to_json }}
JSON
- name: Create the apt scratch directory, which a check mode run of the update entry point does not
check_mode: false
when: system_baseline_case.tasks_from | default('vzdump_guard') == 'update'
ansible.builtin.file:
path: /var/cache/system-baseline-apt-tmp
state: directory
mode: "0700"
- name: Forget earlier calls
ansible.builtin.file:
path: /var/tmp/pvesh-calls
state: absent
- name: Run the case's tasks in check mode
check_mode: true
block:
- name: Include system_baseline, tasks_from {{ system_baseline_case.tasks_from | default('vzdump_guard') }}
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: "{{ system_baseline_case.tasks_from | default('vzdump_guard') }}"
vars:
system_baseline_system_type: "{{ system_baseline_case.type }}"
system_baseline_skip_upgrade_during_vzdump: "{{ system_baseline_case.input }}"
- name: Read the recorded pvesh calls
ansible.builtin.slurp:
src: /var/tmp/pvesh-calls
register: system_baseline_case_calls
failed_when: false
- name: The guard decided as the case expects, and pvesh was asked only when it should be
ansible.builtin.assert:
that:
- __system_baseline_vzdump_running == system_baseline_case.running
- (system_baseline_case_calls.content is defined) == system_baseline_case.asked
- not system_baseline_case.asked or
"get /nodes/localhost/tasks --source active --limit 0 --output-format json" in (system_baseline_case_calls.content | b64decode)
quiet: true
- name: Remove the pvesh stub and its record
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- /usr/local/bin/pvesh
- /var/tmp/pvesh-calls
@@ -1,4 +1,337 @@
---
# Validation-only plays: they need no container, so they run once, on the controller, in
# check mode so that a refusal that regressed cannot change the controller.
- name: Refuse an unknown system_baseline_system_type
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the role with a bad system_baseline_system_type
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: not_a_type
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_system_type
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'is invalid' in ansible_failed_result.msg | default('')"
quiet: true
# The apt upgrade mode is safe or dist: anything else (here `full`, an apt module value the role does not offer) stops the run before
# any change, with a message that names the input.
- name: An unknown apt upgrade mode is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the role with a bad system_baseline_apt_upgrade
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_apt_upgrade: full
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_apt_upgrade
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_upgrade is' in ansible_failed_result.msg | default('')"
quiet: true
# The update entry point does not run validate.yml, so it checks the mode itself and stops before it calls the package module.
- name: The update entry point refuses an unknown apt upgrade mode
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the update entry point with a bad system_baseline_apt_upgrade
block:
- name: Include system_baseline, tasks_from update
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: update
vars:
system_baseline_apt_upgrade: full
- name: Unreachable when validation works
ansible.builtin.fail:
msg: the update entry point ran with an invalid system_baseline_apt_upgrade
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_upgrade is' in ansible_failed_result.msg | default('')"
quiet: true
# The apt scratch directory becomes TMPDIR of the upgrade: a path under /tmp or /var/tmp (which a restart of ssh.service can delete), a relative
# path and a `..` each stop the run before any change, in the main flow and in the update entry point (which does not run validate.yml).
- name: A bad apt scratch directory is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_apt_tmpdir_entries.yml
vars:
system_baseline_refused_tmpdir: "{{ item }}"
loop:
- /tmp
- /var/tmp/apt
- /var/cache/../../tmp/x
- var/cache/apt-tmp
- ""
# The reboot inputs are whole numbers, 0 or more: a negative number and a boolean each stop the run before a host reboots,
# in the main flow and in the reboot entry point (which does not run validate.yml).
- name: A bad reboot throttle or post-reboot delay is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_reboot.yml
vars:
system_baseline_refused_reboot: "{{ item }}"
loop:
- {system_baseline_reboot_throttle: -1}
- {system_baseline_reboot_post_delay: -5}
- {system_baseline_reboot_post_delay: true}
# The value is written into a unit file, so a line break (a second directive) is refused.
- name: A bad apt-daily timeout is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Run the role with a line break in system_baseline_apt_daily_timeout
block:
- name: Include system_baseline
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_apt_daily_timeout: "1h\nExecStart=/bin/true"
- name: Unreachable when validation works
ansible.builtin.fail:
msg: system_baseline ran with an invalid system_baseline_apt_daily_timeout
rescue:
- name: The validation stopped the play
ansible.builtin.assert:
that: "'system_baseline_apt_daily_timeout must be' in ansible_failed_result.msg | default('')"
quiet: true
# The journal cap is a size journald reads, or empty: infinity (SystemMaxUse does not take it), a lower-case unit, a unit with a trailing B,
# a line break and a number that is not a string each stop the run before any change.
- name: A bad journal size cap is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_journal_max_use.yml
vars:
system_baseline_refused_journal: "{{ item }}"
loop:
- infinity
- "10m"
- "10MB"
- "200M\nStorage=none"
- 300
# A quote, a null item and a bare string (not a list) each stop the run: the bare string would otherwise be split into one-character
# patterns, and the null item would become an empty pattern that matches every package.
- name: A bad package blacklist is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_blacklist.yml
vars:
system_baseline_refused_blacklist: "{{ item }}"
loop:
- ['bad"name']
- [null]
- linux-image-.*
# Items that are not Debian package names (whitespace, null, empty, a trailing minus that apt reads as a removal, an option, upper case, a
# version pin), and a package that one input installs and another purges, each stop the run before any change.
# The overlaps are: an extra install against the profile's remove list (telnet), an extra install against an extra remove, and an extra
# remove against the profile's install list (tmux).
- name: A bad extra package list is refused
hosts: localhost
connection: local
check_mode: true
gather_facts: false
tasks:
- name: Refuse each bad value
ansible.builtin.include_tasks: tasks/refuse_extra_packages.yml
vars:
system_baseline_refused_case: "{{ item }}"
loop:
- { install: ['bad name'], expect: 'must be lists of package names' }
- { install: [null], expect: 'must be lists of package names' }
- { install: jq, expect: 'must be lists of package names' }
- { remove: [''], expect: 'must be lists of package names' }
- { install: ['jq-'], expect: 'must be lists of package names' }
- { install: ['-y'], expect: 'must be lists of package names' }
- { remove: ['Telnet'], expect: 'must be lists of package names' }
- { remove: ['ed=1.0'], expect: 'must be lists of package names' }
- { install: [telnet], expect: 'is both installed and purged' }
- { install: [jq], remove: [jq], expect: 'is both installed and purged' }
- { remove: [tmux], expect: 'is both installed and purged' }
# The remaining plays only load the role's defaults (validate.yml changes nothing) and assert
# the resolved inputs. They cover the profiles converge.yml cannot run.
- name: The pve profile resolves
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
system_baseline_system_type: pve
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the pve profile
ansible.builtin.assert:
that:
- "'ufw' not in system_baseline_essential_packages"
- "'tmux' not in system_baseline_essential_packages"
- "'unattended-upgrades' in system_baseline_essential_packages"
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == false
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '03:00'
- system_baseline_secure_tmp_mounts == ['/dev/shm', '/tmp', '/var/tmp']
- system_baseline_update
- system_baseline_apt_upgrade == 'dist'
- system_baseline_unattended_upgrade_origins | length == 3
- system_baseline_unattended_upgrade_origins | select('search', 'Proxmox') | list == []
- __system_baseline_install_packages == system_baseline_essential_packages
- __system_baseline_purge_packages == system_baseline_remove_packages
quiet: true
- name: The ubuntu_vm profile resolves
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
system_baseline_system_type: ubuntu_vm
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the ubuntu_vm profile
ansible.builtin.assert:
that:
- "'qemu-guest-agent' in system_baseline_essential_packages"
- "'tmux' in system_baseline_essential_packages"
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == false
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '04:00'
- system_baseline_sysctl_hardening | selectattr('name', 'equalto', 'net.ipv4.conf.all.log_martians') | list | length == 1
- system_baseline_apt_upgrade == 'safe'
- system_baseline_unattended_upgrade_origins == []
- __system_baseline_install_packages == system_baseline_essential_packages
- __system_baseline_purge_packages == system_baseline_remove_packages
quiet: true
# Consumer play vars override the profile.
- name: Consumer overrides win over the profile
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
system_baseline_system_type: ubuntu_vm
system_baseline_remove_packages: [telnet]
system_baseline_apt_upgrade: dist
system_baseline_profile_overrides:
ubuntu_vm:
unattended_upgrade_settings:
"Unattended-Upgrade::Automatic-Reboot": true
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the overrides
ansible.builtin.assert:
that:
- system_baseline_remove_packages == ['telnet']
- system_baseline_apt_upgrade == 'dist'
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot'] == true
- system_baseline_unattended_upgrade_settings['Unattended-Upgrade::Automatic-Reboot-Time'] == '04:00'
- "'qemu-guest-agent' in system_baseline_essential_packages"
quiet: true
# The extras append to the resolved lists, whether the profile's list or a flat input supplies them, and a name that is in both is listed once.
- name: Extra packages append to the resolved lists
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_essential_packages: [vim, curl]
system_baseline_extra_packages: [jq, vim, unattended-upgrades]
system_baseline_extra_remove_packages: [ed, telnet]
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the lists the role acts on
ansible.builtin.assert:
that:
- __system_baseline_install_packages == ['vim', 'curl', 'jq', 'unattended-upgrades']
- "'ed' in __system_baseline_purge_packages"
- __system_baseline_purge_packages | select('equalto', 'telnet') | list | length == 1
- system_baseline_remove_packages | difference(__system_baseline_purge_packages) | length == 0
quiet: true
# A flat input that is a plain string (the package module accepts one) still counts as a one-item list, with and without extras.
- name: A flat string package list still resolves
hosts: localhost
connection: local
check_mode: true
gather_facts: false
vars:
system_baseline_system_type: ubuntu_lxc
system_baseline_essential_packages: vim
system_baseline_extra_packages: [jq]
tasks:
- name: Load the role defaults
ansible.builtin.include_role:
name: mortis.kamino.system_baseline
tasks_from: validate.yml
public: true
- name: Assert the lists the role acts on
ansible.builtin.assert:
that:
- __system_baseline_install_packages == ['vim', 'jq']
quiet: true
- name: Verify
hosts: all
gather_facts: false
@@ -131,6 +464,19 @@
- system_baseline_verify_update_tasks is search('(?m)^ ansible.builtin.meta:\sreset_connection$')
quiet: true
# The guard cases below run vzdump_guard.yml alone, so this holds the wiring: the guard is imported before the upgrade, and the upgrade
# task's when reads the guard's fact.
- name: The vzdump guard is imported before the upgrade, and the upgrade waits on its fact
ansible.builtin.assert:
that:
- >-
system_baseline_verify_update_tasks is search('(?ms)^ ansible\.builtin\.import_tasks:\svzdump_guard\.yml$'
~ '.*^- name:\sUpdate & upgrade apt packages$')
- >-
system_baseline_verify_update_tasks is search('(?m)^- name:\sUpdate & upgrade apt packages\n(?: .*\n)*?'
~ ' - not \(__system_baseline_vzdump_running \| default\(false\)\)$')
quiet: true
# The reboot entry point is a supported interface: with system_baseline_reboot_if_required
# false it only sets system_baseline_reboot_required. Here and not in converge, because it
# creates and removes the marker file, which the idempotence run would report as a change.
@@ -138,6 +484,7 @@
- name: The reboot entry point only computes the fact when told not to reboot
hosts: all
gather_facts: true
gather_subset: [min]
tasks:
- name: Remove the reboot marker
ansible.builtin.file:
@@ -451,6 +798,26 @@
quiet: true
tags: always
# The vzdump guard (system_baseline_skip_upgrade_during_vzdump): a running backup is a vzdump task without an endtime. With the input off, or on
# a system type other than pve, pvesh is never run. Only the decision is asserted: the upgrade itself is not run in CI. The cases run the guard
# alone; the last one runs the update entry point, so it still runs end to end in check mode.
- name: The vzdump guard skips the upgrade only for a running backup on a pve node
hosts: all
gather_facts: false
tasks:
- name: Run each case
ansible.builtin.include_tasks: tasks/vzdump_guard_case.yml
vars:
system_baseline_case: "{{ item }}"
loop:
- {type: pve, input: true, running: true, asked: true, answer: [{type: vzdump, upid: a, starttime: 1}]}
- {type: pve, input: true, running: true, asked: true, answer: [{type: vzdump, upid: a, starttime: 1}, {type: qmstart, upid: b, starttime: 1}]}
- {type: pve, input: true, running: false, asked: true, answer: [{type: vzdump, upid: a, starttime: 1, endtime: 2}]}
- {type: pve, input: true, running: false, asked: true, answer: [{type: qmstart, upid: b, starttime: 1}]}
- {type: pve, input: true, running: false, asked: true, answer: []}
- {type: pve, input: false, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}]}
- {type: ubuntu_lxc, input: true, running: false, asked: false, answer: [{type: vzdump, upid: a, starttime: 1}], tasks_from: update}
# An empty system_baseline_journal_max_use leaves journald alone: with the drop-in gone, the role neither writes it again nor restarts
# systemd-journald. It runs last, because it applies the role with its defaults (the converge's tmux autostart and apt-daily timeout are
# not set here) and the checks above read what the converge wrote.
@@ -458,6 +825,7 @@
- name: An empty journal size cap leaves journald alone
hosts: all
gather_facts: true
gather_subset: [min]
tasks:
- name: Remove the drop-in and its directory
ansible.builtin.file:
+6 -3
View File
@@ -4,6 +4,7 @@
name: "{{ __system_baseline_install_packages }}"
state: present
update_cache: true
cache_valid_time: 3600
become: true
- name: Gather installed packages
@@ -11,11 +12,13 @@
manager: auto
become: true
# One apt call for every unwanted package that is installed, skipped when none is.
- name: Remove unnecessary packages if installed
ansible.builtin.package:
name: "{{ item }}"
name: "{{ __system_baseline_purge_present }}"
state: absent
purge: true
loop: "{{ __system_baseline_purge_packages }}"
when: item in ansible_facts.packages
vars:
__system_baseline_purge_present: "{{ __system_baseline_purge_packages | select('in', ansible_facts.packages) | list }}"
when: __system_baseline_purge_present | length > 0
become: true
+3 -3
View File
@@ -4,16 +4,16 @@
ansible.builtin.import_tasks: validate_reboot.yml
- name: Check if reboot required (Debian)
when: ansible_os_family == "Debian"
when: ansible_facts['os_family'] == "Debian"
block:
- name: Check if reboot is required (Debian)
ansible.builtin.stat:
path: /var/run/reboot-required
register: system_baseline_reboot_required_file
register: __system_baseline_reboot_required_file
- name: Set system_baseline_reboot_required fact
ansible.builtin.set_fact:
system_baseline_reboot_required: "{{ system_baseline_reboot_required_file.stat.exists }}"
system_baseline_reboot_required: "{{ __system_baseline_reboot_required_file.stat.exists }}"
- name: Reboot the server if required
ansible.builtin.reboot:
@@ -60,6 +60,6 @@
- name: Validate unattended-upgrades config
become: true
ansible.builtin.command: unattended-upgrades --dry-run --debug
register: system_baseline_unattended_check
register: __system_baseline_unattended_check
changed_when: false
failed_when: system_baseline_unattended_check.rc != 0
failed_when: __system_baseline_unattended_check.rc != 0
+7 -1
View File
@@ -21,6 +21,10 @@
mode: "0700"
become: true
# import_tasks, not include_tasks: the update tag, the caller's when and __system_baseline_main_flow must reach the guard's tasks.
- name: Decide whether a vzdump backup holds back the upgrade
ansible.builtin.import_tasks: vzdump_guard.yml
# safe is the apt module's name for the plain upgrade (apt-get upgrade --with-new-pkgs), what `true` meant here before; dist runs
# apt-get dist-upgrade (profile key apt_upgrade, `pve` by default).
- name: Update & upgrade apt packages
@@ -31,7 +35,9 @@
environment:
TMPDIR: "{{ system_baseline_apt_tmpdir }}"
become: true
when: not (ansible_check_mode and __system_baseline_main_flow | default(false))
when:
- not (ansible_check_mode and __system_baseline_main_flow | default(false))
- not (__system_baseline_vzdump_running | default(false))
# autoremove must stay in this task: the apt module accepts autoclean alone only together with one of autoremove, name, update_cache or upgrade.
- name: Remove unused packages and clean the apt cache
Loaded 100 of 145 files, more files were not shown because too many files have changed in this diff. Show more