Commit Graph
679 Commits
Author SHA1 Message Date
Defame1297 2e1ad033e4 test(roles): run the Ubuntu roles on 24.04 and 26.04 and declare exactly those
Build / build (pull_request) Successful in 51s
Lint / lint (pull_request) Successful in 3m42s
Molecule / molecule (pull_request) Failing after 20m50s
Every role except network_interfaces runs its molecule scenarios on the
24.04 and 26.04 images and declares Ubuntu noble and resolute; jammy and
Ubuntu all are dropped. trixie stays declared until the Debian 13 image
(#226) tests it. docker and gitea stay on noble until the 26.04 image
ships gnupg (#378).

Closes #133

Assisted-by: Claude Code
2026-11-25 20:17:53 +00:00
Defame1297 3bfc485076 Merge pull request 'feat(docker): manage /etc/docker/daemon.json (live-restore, log driver, extra options)' (#379) from feat/375-docker-daemon-json into main
Reviewed-on: #379
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 20:07:19 +00:00
Defame1297 3bc21bd630 Merge branch 'main' into feat/375-docker-daemon-json
Build / build (pull_request) Successful in 53s
Molecule / molecule (pull_request) Successful in 11m35s
Lint / lint (pull_request) Successful in 4m16s
2026-11-25 19:49:56 +00:00
Defame1297 3149c22f93 Merge pull request 'fix(system_baseline): run the apt upgrade with TMPDIR outside /tmp and /var/tmp' (#377) from fix/374-apt-tmpdir into main
Reviewed-on: #377
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 19:42:14 +00:00
Dragonish 887302b208 feat(docker): manage /etc/docker/daemon.json (live-restore, log driver, extra options)
Build / build (pull_request) Successful in 51s
Molecule / molecule (pull_request) Canceled after 0s
Lint / lint (pull_request) Canceled after 1m20s
Adds docker_daemon_options, docker_live_restore, docker_log_driver,
docker_log_max_size, docker_log_max_file and docker_daemon_restart.

The file is written, before the packages are installed, only when one of
the first five is set, so a host that sets none is unchanged; the role
then owns the whole file. It restarts dockerd only when
docker_daemon_restart is true, because a restart with live-restore off
ends every container, and says so when the file applies later. A key set
by both docker_daemon_options and a dedicated input, and a bad log value,
stop the run before any change.

Closes #375

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-25 19:42:06 +00:00
Defame1297 ebac95e51d Merge branch 'main' into fix/374-apt-tmpdir
Build / build (pull_request) Successful in 25s
Lint / lint (pull_request) Successful in 1m48s
Molecule / molecule (pull_request) Successful in 3m11s
2026-11-25 19:38:19 +00:00
Defame1297 428b88a822 Merge pull request 'feat(pihole): add the pihole role' (#372) from feat/pihole-role into main
Reviewed-on: #372
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 19:37:18 +00:00
Defame1297 0a5a5c532a Merge remote-tracking branch 'origin/feat/pihole-role' into feat/pihole-role
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 1m57s
Molecule / molecule (pull_request) Successful in 1m36s
2026-11-25 19:32:50 +00:00
Defame1297 8c00be1af2 fix(pihole): declare and test noble only
The molecule-ubuntu2604 image cannot become root: sudo refuses with an
account validation failure, so resolute is not testable yet. Like the
other Ubuntu roles, pihole declares noble only and names resolute as an
untested platform in its README.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 19:26:55 +00:00
Defame1297 a9a332457b Merge branch 'main' into feat/pihole-role
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Failing after 1m8s
Lint / lint (pull_request) Successful in 1m53s
2026-11-25 19:23:26 +00:00
Dragonish 1bbf3368ee fix(system_baseline): run the apt upgrade with TMPDIR outside /tmp and /var/tmp
Build / build (pull_request) Successful in 31s
Lint / lint (pull_request) Canceled after 1m40s
Molecule / molecule (pull_request) Canceled after 1m13s
An openssh-server upgrade restarts ssh.service. With PrivateTmp=yes systemd
then deletes that unit's /tmp and /var/tmp, which removes the files apt
staged there while the upgrade is still running, so dpkg fails and leaves
packages unpacked but not configured.

The update flow now creates system_baseline_apt_tmpdir (root, mode 0700),
runs the upgrade and the autoremove with TMPDIR set to it, and opens a new
connection afterwards. The input is validated in the main flow and in the
update entry point: absolute, no "..", not under /tmp or /var/tmp.

Closes #374

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-25 19:21:01 +00:00
Defame1297 910d79768a fix(pihole): run every fact-only task whatever tags are skipped
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Failing after 1m2s
Lint / lint (pull_request) Successful in 1m52s
The installed check carried only updates-only and the merge kept its own
default tag, so skipping either left a fact undefined that untagged tasks
read. Both now run under always alone, and the README Tags section no
longer names updates-only, which selected nothing else.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 19:09:39 +00:00
Defame1297 008c5ab8a4 Merge pull request 'chore(release): 2.0.1' (#373) from chore/release-2.0.1 into main
Build / build (push) Successful in 23s
Reviewed-on: #373
v2.0.1
2026-11-25 19:06:46 +00:00
Defame1297 d167cbefc5 docs(galaxy): name pihole in the Collection description
Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 19:01:33 +00:00
Defame1297 71ae86dc61 test(pihole): assert the config directory, group and clone version
verify.yml now checks the group of pihole.toml, the owner, group and mode
of /etc/pihole, and that the clone is checked out at the repo.version the
converge used, read from the role defaults. The molecule.yml comment
describes the test sequence accurately.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:58:16 +00:00
Defame1297 d84fb4a2f4 fix(pihole): address review findings
Remove the pihole_force_install input, which had no effect, and the dead
term of the install condition. Tag the merge and the configuration
directory check always, so --skip-tags config-only no longer skips facts
that later tasks read. Skip the installer log under --check, where the
installer did not run. Read the env and user_id facts through
ansible_facts, drop a redundant default, state the real reasons two
defaults stay out of the argument spec, and bring the README to the
fixed heading set.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:53:21 +00:00
Dragonish a930a58beb chore(release): 2.0.1
Build / build (pull_request) Successful in 29s
Molecule / molecule (pull_request) Successful in 13s
Lint / lint (pull_request) Successful in 1m24s
Patch release: the docker role gains the opt-in boot and shutdown units
for hosts that run Docker with live-restore.

Assisted-by: Claude Code:claude-sonnet-5-5
2026-11-25 18:49:55 +00:00
Defame1297 9979dfa8ed Merge branch 'main' into feat/pihole-role 2026-11-25 18:27:33 +00:00
Defame1297 b0717eed0a Merge pull request 'feat(docker): add opt-in boot and shutdown units for hosts that run Docker with live-restore' (#371) from feat/369-docker-boot-shutdown-units into main
Reviewed-on: #371
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 18:25:58 +00:00
Defame1297 81b0fc2277 Merge branch 'main' into feat/369-docker-boot-shutdown-units
Build / build (pull_request) Successful in 30s
Lint / lint (pull_request) Successful in 2m2s
Molecule / molecule (pull_request) Successful in 5m51s
2026-11-25 18:19:32 +00:00
Defame1297 a82cbbd306 Merge pull request 'docs(roles): bring every role README to the fixed heading set' (#370) from docs/136-role-readme-headings into main
Reviewed-on: #370
2026-11-25 18:18:16 +00:00
Defame1297 bf6f9b5800 test(pihole): add the default molecule scenario
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 2m7s
Molecule / molecule (pull_request) Failing after 2m27s
Runs on noble and resolute without the real Pi-hole: the clone target
is a local git repository whose installer is a stub that logs its
arguments and creates the database file.

Covers a check run before the converge and after idempotence, the
merge, the rendered pihole.toml (upstreams, interface, hashed
password, owner and mode), the system user, the installer sequence
(install once, then reconfigure from the handler) and a negative test
for every validation: no Ubuntu facts, a missing pihole_web_password,
an unset interface, empty upstreams, a non-string and a placeholder
password. No pihole-FTL service runs, so the loaded configuration is
not verified.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:11:00 +00:00
Defame1297 66628635b9 feat(pihole): add the pihole role
Installs Pi-hole v6 on Ubuntu noble and resolute by cloning the
upstream repository and running its installer unattended, with
pihole.toml rendered from pihole_default merged with pihole_overrides.
A change to pihole.toml runs the installer's reconfigure mode.

Validation runs first under always: the host must be Ubuntu, and the
merged settings need a non-empty interface and upstream list and a
string password other than the placeholder. pihole_web_password is a
required no_log input. Computed values are internal __pihole_ names.

Derived from codeberg.org/ansible/pihole (GPL-3.0-only) with Pi-hole
FTL comment text (EUPL-1.2): REUSE.toml annotations, the EUPL-1.2
text and NOTICE entries record both. The README roadmap drops pihole.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 18:10:59 +00:00
Dragonish 567e9cca7c feat(docker): add opt-in boot and shutdown units for hosts that run Docker with live-restore
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 2m15s
Molecule / molecule (pull_request) Successful in 4m17s
docker_start_missed installs a boot unit that starts the containers dockerd's
restore pass skipped after a reboot of the whole host. docker_stop_at_shutdown
installs a unit that ends container processes at shutdown while the network and
NFS shares are still up, so a container holding an NFS mount no longer stalls
the shutdown. Both default to false and do nothing without /usr/bin/docker.

Refs #369

Assisted-by: Claude Code
2026-11-25 17:31:37 +00:00
Defame1297 234648919c docs(roles): bring every role README to the fixed heading set
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m21s
Every public role README has the headings Supported platforms, Requirements
and run order, Role variables, Entry points (when several), Variables set by
the role (when any), Tags, Example play, Tests and Notes, in that order, with
an "Idempotent" line in Notes. Role-specific sections move under Entry points
or Notes; nothing is removed. The internal _binary_update README keeps its own
headings and gains the platform and Idempotent lines.

Closes #136

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 17:24:27 +00:00
Defame1297 4a7189c067 Merge pull request 'ci(lint): run every commit-msg hook on a pull request's commits' (#368) from ci/lint-all-commit-msg-hooks into main
Reviewed-on: #368
2026-11-25 13:26:45 +00:00
Defame1297 f5d4793d43 Merge branch 'main' into ci/lint-all-commit-msg-hooks
Build / build (pull_request) Successful in 27s
Molecule / molecule (pull_request) Successful in 4s
Lint / lint (pull_request) Successful in 1m21s
2026-11-25 13:25:22 +00:00
Defame1297 696fe92142 Merge pull request 'ci: run two jobs on the runner and give molecule 45 minutes' (#367) from ci/243-capacity-two into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 13s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 14s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 14s
Reviewed-on: #367
2026-11-25 13:15:03 +00:00
Defame1297 a0b875fe65 Merge branch 'main' into ci/243-capacity-two
Build / build (pull_request) Successful in 27s
Lint / lint (pull_request) Successful in 2m23s
Molecule / molecule (pull_request) Successful in 16m4s
2026-11-25 12:58:27 +00:00
Defame1297 5f655cbb76 ci(lint): run every commit-msg hook on a pull request's commits
Build / build (pull_request) Successful in 44s
Lint / lint (pull_request) Successful in 3m18s
Molecule / molecule (pull_request) Successful in 8s
The Lint step gave each commit's message only to conventional-pre-commit,
so refuse-agent-trailers ran nowhere in CI: --no-verify, a clone without
dev-setup.sh or a commit made through the forge passed it unseen. The
step now runs every commit-msg hook, and the trailer rule's held-by
names the Lint check.

Assisted-by: Claude Code
2026-11-25 11:58:29 +00:00
Defame1297 8133e8453e ci: run two jobs on the runner and give molecule 45 minutes
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m23s
Molecule / molecule (pull_request) Successful in 17m21s
The runner now takes two jobs at a time, so a Lint and a Build of one pull
request start together. The image.yml comment no longer says builds run on a
single-capacity runner: max-parallel keeps the builds to one at a time, and a
build may share the runner with one other job.

Two full molecule runs sharing the runner (a nightly run and a dispatch)
take longer than 30 minutes; both were cut off at the timeout with every
finished scenario green. The timeout goes to 45 minutes, and the sweep age
with it (a script test holds the two equal).

Refs #243

Assisted-by: Claude Code:claude-opus-5-5
2026-11-25 10:58:36 +00:00
Defame1297 b32e56c10a Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.43' (#366) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #366
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 10:26:37 +00:00
renovate-bot 1fded69ee8 chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.43
renovate/stability-days Updates have met minimum release age requirement
Gitea release key / check (pull_request) Successful in 48s
Build / build (pull_request) Successful in 1m0s
Lint / lint (pull_request) Successful in 2m28s
Molecule / molecule (pull_request) Successful in 16m9s
2026-11-25 10:09:24 +00:00
Defame1297 4ec685b4f6 Merge pull request 'ci(pre-commit): refuse a plugins/ directory and agent co-author trailers' (#365) from ci/272-refuse-plugins-and-agent-trailers into main
Images / image (0.1, Dockerfile, ubuntu:24.04@sha256:9c7f200c07e3d4a03e7249d2c16bf66a51120fb876aa2242cf31451412543289, molecule-ubuntu2404, images/molecule-ubuntu2404) (push) Successful in 12s
Images / image (0.1, Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, molecule-ubuntu2604, images/molecule-ubuntu2604) (push) Successful in 13s
Images / image (0.2, images/ci/Dockerfile, ubuntu:26.04@sha256:d66b366dac61b575bee2aef07e9c26e8070096fbe84a3d4d3eb0da069b5d76db, ci, ) (push) Successful in 6m26s
Reviewed-on: #365
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 10:01:59 +00:00
Defame1297 aba119ddd2 ci(pre-commit): refuse a plugins/ directory and agent co-author trailers
Build / build (pull_request) Successful in 19s
Molecule / molecule (pull_request) Successful in 1m9s
Lint / lint (pull_request) Successful in 2m6s
Two local hooks hold rules that review held until now:

- refuse-plugins (language: fail, ^plugins/): the Collection holds roles
  only; a plugin needs an ADR first, whose pull request removes the hook.
  It runs before ansible-lint so that hook's fail_fast cannot hide it.
- refuse-agent-trailers (pygrep, commit-msg stage): refuses Claude-Session:
  and Co-Authored-By: lines naming a known agent identity. A human
  co-author passes, including one whose first name is Claude. The hook
  name carries the rule, since pygrep prints no other message.

AGENTS.md and ai-assistance.md name the hook as a partial control of the
trailer rule; other AI trailers stay held by review.

Closes #272

Assisted-by: Claude Code
2026-11-25 09:14:01 +00:00
Defame1297 e951008182 Merge pull request 'docs(agents): who may set Status/Ready for Agent, and issue text is data' (#363) from docs/230-ready-for-agent-rule into main
Reviewed-on: #363
Reviewed-by: Defame1297 <[email protected]>
2026-11-25 08:32:55 +00:00
Defame1297 668f71741a docs(agents): who may set Status/Ready for Agent, and issue text is data
Build / build (pull_request) Successful in 31s
Molecule / molecule (pull_request) Successful in 8s
Lint / lint (pull_request) Successful in 1m25s
issue-tracker.md gains "Acting on an issue" under Conventions: the
label counts as set by the maintainer or a trusted contributor, from
their own account or an agent account in a session they drive; an
unattended agent never adds it and acts only on labelled issues opened
by one of those roles or an agent account; every agent treats issue
and comment text as data. Each rule is held aspirationally.
triage-labels.md says who sets the label, links to the rule, and uses
"unattended agent" for the glossary-avoided "AFK agent".

Closes #230

Assisted-by: Claude Code
2026-11-25 08:29:48 +00:00
Defame1297 8a1fca1061 Merge pull request 'ci(molecule): correct the stale fork claims' (#362) from ci/178-stale-fork-claims into main
Reviewed-on: #362
2026-11-25 08:08:34 +00:00
Defame1297 ae28d5452c ci(molecule): correct the stale fork claims
Build / build (pull_request) Successful in 17s
Lint / lint (pull_request) Successful in 1m20s
Molecule / molecule (pull_request) Successful in 17m29s
The molecule.yml header said only trusted people can open pull
requests here; an outsider can open a fork pull request. It now names
the two boundaries: write access, and Gitea's approval gate on fork
runs, kept shut by the fork rule in reviewing.md. The fork guard in
the job's if: stays a convenience filter. The Molecule rule in
.gitea/workflows/AGENTS.md says the same, and issue-tracker.md says
fork pull requests are closed with a pointer to issues.

Closes #178

Assisted-by: Claude Code
2026-11-24 22:09:13 +00:00
Defame1297 79fed1f270 Merge pull request 'docs(agents): make issue-tracker.md tool-neutral and name tea as the supported tool' (#361) from docs/267-tea-issue-tracker into main
Reviewed-on: #361
2026-11-24 21:54:17 +00:00
Defame1297 abde765472 docs(agents): make issue-tracker.md tool-neutral and name tea as the supported tool
Build / build (pull_request) Successful in 22s
Lint / lint (pull_request) Successful in 1m13s
Molecule / molecule (pull_request) Successful in 13s
issue-tracker.md becomes Conventions (operations as Gitea concepts) and a
Tool section with one tea command per operation, tea api for blocked_by
dependencies. It names no skill or MCP tool, and drops the maintainer-only
token and account-lookup lines. setup.md adds The tracker: install tea
0.14.2 or later and log in with a token of your own account.
dev-setup.sh warns when tea is missing or older; it installs nothing.

Closes #267

Assisted-by: Claude Code
2026-11-24 21:43:11 +00:00
Defame1297 789b481b5d Merge pull request 'docs(contributing): write maintaining.md for the maintainer's standing procedures' (#359) from docs/262-maintaining-md into main
Reviewed-on: #359
Reviewed-by: Defame1297 <[email protected]>
2026-11-24 17:18:28 +00:00
Defame1297 084bddcae9 docs(contributing): complete the settings checklist in maintaining.md
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m8s
Molecule / molecule (pull_request) Successful in 3s
List the remaining decided main protection settings, the tag and
release/* allowlist members and the Owners rule; name the workflows
that use the job token; hold account creation as aspirational; define
a full run before its first use.

Assisted-by: Claude Code
2026-11-24 17:15:02 +00:00
Defame1297 dbe8d5d988 docs(contributing): write maintaining.md for the maintainer's standing procedures
Add docs/contributing/maintaining.md with what only the maintainer does:
the secret rotation list, granting and withdrawing a trusted contributor,
agent and bot accounts, the intended settings and releases. Point to it
from the root AGENTS.md and the CONTRIBUTING.md index.

The two release rules (red nightly, no release while red) are held by
aspirational until their controls exist.

Closes #262

Assisted-by: Claude Code
2026-11-24 17:13:31 +00:00
Defame1297 2dea86a492 Merge pull request 'chore(release): 2.0.0' (#358) from chore/release-2.0.0 into main
Build / build (push) Successful in 15s
Reviewed-on: #358
Reviewed-by: Defame1297 <[email protected]>
v2.0.0
2026-11-24 16:47:55 +00:00
Defame1297 2ecf7f8765 chore(release): 2.0.0
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m7s
Molecule / molecule (pull_request) Successful in 3s
Major release: raises the ansible-core floor to 2.22 and removes the
gitea_runner molecule tooling inputs. Also new docker, fail2ban,
gitea_runner and system_baseline features and a system_baseline
check-mode fix.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-24 16:43:45 +00:00
Defame1297 86b6abf5d9 Merge pull request 'ci(molecule): select no scenario for a galaxy.yml change, guarded by a load check' (#357) from ci/355-galaxy-yml-ignored into main
Reviewed-on: #357
Reviewed-by: Defame1297 <[email protected]>
2026-11-24 16:40:42 +00:00
Defame1297 03b21a9aef ci(molecule): select no scenario for a galaxy.yml change, guarded by a load check
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m7s
Molecule / molecule (pull_request) Successful in 15m19s
Scenarios load mortis.kamino from the checkout, not the copy molecule installs from
galaxy.yml, so galaxy.yml goes on the selector's IGNORED list. A new check, run by
run_molecule_in_ci_image.sh before the scenarios, fails the run when the environment
molecule gives ansible-playbook would resolve the collection anywhere else.

Closes #355

Assisted-by: Claude Code
2026-11-24 15:56:27 +00:00
Defame1297 fcd331be06 Merge pull request 'chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.42' (#354) from renovate/git.rkdr.net-mortis-ci-0.x into main
Reviewed-on: #354
Reviewed-by: Defame1297 <[email protected]>
2026-11-24 14:03:10 +00:00
renovate-bot 11ed3df80e chore(deps): update git.rkdr.net/mortis/ci docker tag to v0.2.42
renovate/stability-days Updates have met minimum release age requirement
Build / build (pull_request) Successful in 35s
Gitea release key / check (pull_request) Successful in 7s
Lint / lint (pull_request) Successful in 59s
Molecule / molecule (pull_request) Successful in 15m1s
2026-11-24 13:36:10 +00:00