Author SHA1 Message Date
Defame1297 a659e83e6b chore(release): 3.1.0
Build / build (pull_request) Successful in 1m3s
Lint / lint (pull_request) Successful in 5m4s
Molecule / molecule (pull_request) Successful in 19s
Minor release: adds the tailscale role, and fixes six roles that failed
under --check on a host where they were not installed yet.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-26 21:56:10 +00:00
13 changed files with 67 additions and 60 deletions

No files matched your search

-6
View File
@@ -57,12 +57,6 @@ issue.
`.pre-commit-config.yaml` takes the slow path, which installs the pinned tools and collections.
*Why:* a pull request is tested on its own pins, and an unchanged one starts in seconds.
*Held:* control: the "Check the baked tooling against the pins" step.
- **On the fast path the tool steps run in a network namespace without network** (`unshare -rn`
through `$OFFLINE`), except "Test the repository scripts", whose fake registry needs loopback;
the slow path keeps network. *Why:* a runtime download is a bake-in defect and must fail the
job, not silently slow it. *Held:* control for the steps that carry the `$OFFLINE` prefix set
by the "Check the baked tooling against the pins" step; review that every new tool step
carries it.
- **Triggers:** both run on pull requests to `main` and on manual dispatch; Build also runs on
`v*` tags, where it checks the tag against `galaxy.yml`. *Why:* the tag is what consumers
install. *Held:* review.
+5 -8
View File
@@ -60,9 +60,6 @@ jobs:
run: |
if sha256sum --quiet -c /opt/ci-pins.sha256; then
echo "The pin files match the ci image; using the baked tools."
# -r adds a user namespace: a job container lacks CAP_SYS_ADMIN for a plain unshare -n.
echo "OFFLINE=unshare -rn --" >> "$GITHUB_ENV"
echo "::notice::The tool steps run without network; a download fails the job (bake it into images/ci)."
else
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
@@ -82,7 +79,7 @@ jobs:
echo "::error::$TAG is a lightweight tag; releases must be annotated (git tag -a)"
exit 1
fi
version="$($OFFLINE python3 -c 'import sys, yaml; print(yaml.safe_load(open("galaxy.yml"))["version"])')"
version="$(python3 -c 'import sys, yaml; print(yaml.safe_load(open("galaxy.yml"))["version"])')"
if [ "$TAG" != "v$version" ]; then
echo "::error::tag $TAG does not match galaxy.yml version $version (expected v$version)"
exit 1
@@ -109,7 +106,7 @@ jobs:
run: |
export PATH="/opt/venv/bin:$PATH"
mkdir -p /tmp/dist
$OFFLINE ansible-galaxy collection build --force --output-path /tmp/dist .
ansible-galaxy collection build --force --output-path /tmp/dist .
ls -l /tmp/dist
sha256sum /tmp/dist/*.tar.gz
@@ -122,7 +119,7 @@ jobs:
echo "::error::expected exactly one tarball in /tmp/dist, found $# match(es): $*"
exit 1
fi
$OFFLINE python3 scripts/check_tarball.py "$1"
python3 scripts/check_tarball.py "$1"
# galaxy-importer without ansible-test and without Docker. The importer reads its
# configuration from this file.
@@ -141,7 +138,7 @@ jobs:
exit 1
fi
GALAXY_IMPORTER_CONFIG=/tmp/galaxy-importer.cfg \
$OFFLINE python3 -m galaxy_importer.main "$1"
python3 -m galaxy_importer.main "$1"
# Sanity tests need the collection at ansible_collections/<namespace>/<name>.
- name: Run ansible-test sanity
@@ -162,4 +159,4 @@ jobs:
{ cat tests/sanity/ignore-common.txt; if [ -f "$ignore" ]; then cat "$ignore"; fi; } > /tmp/ignore.new
mv /tmp/ignore.new "$ignore"
echo "Sanity ignore list for ansible-core ${core}: $(wc -l < "$ignore") lines"
$OFFLINE ansible-test sanity --requirements --color no
ansible-test sanity --requirements --color no
+5 -9
View File
@@ -59,9 +59,6 @@ jobs:
run: |
if sha256sum --quiet -c /opt/ci-pins.sha256; then
echo "The pin files match the ci image; using the baked tools."
# -r adds a user namespace: a job container lacks CAP_SYS_ADMIN for a plain unshare -n.
echo "OFFLINE=unshare -rn --" >> "$GITHUB_ENV"
echo "::notice::The tool steps run without network; a download fails the job (bake it into images/ci)."
else
echo "::warning::requirements-dev.txt, requirements-dev.lock, requirements.yml," \
"extensions/molecule/requirements.yml or .pre-commit-config.yaml differ from the ci image;" \
@@ -74,7 +71,7 @@ jobs:
- name: Run pre-commit on all files
run: |
export PATH="/opt/venv/bin:$PATH"
$OFFLINE pre-commit run --all-files --show-diff-on-failure
pre-commit run --all-files --show-diff-on-failure
# Image pins (scripts/check_image_versions.py): a pin in a workflow must name an
# image of the matrix. Not a pre-commit hook: a change to .pre-commit-config.yaml
@@ -82,7 +79,7 @@ jobs:
- name: Check image pins
run: |
export PATH="/opt/venv/bin:$PATH"
$OFFLINE python3 scripts/check_image_versions.py pins
python3 scripts/check_image_versions.py pins
# A pull request from a renovate/ branch may only move version, tag, digest and pin
# lines (scripts/check_bot_pr_diff.py), so the bot's automerge cannot change workflow
@@ -109,9 +106,8 @@ jobs:
else
echo "::notice::$BASE_REF has no scripts/check_bot_pr_diff.py yet; running the pull request's copy"
fi
$OFFLINE python3 -E -s "$guard" "$HEAD_REF" "$BASE_REF"
python3 -E -s "$guard" "$HEAD_REF" "$BASE_REF"
# Online: a new network namespace has loopback down, and the image has no ip to bring it up for the fake registry.
- name: Test the repository scripts
run: |
export PATH="/opt/venv/bin:$PATH"
@@ -129,7 +125,7 @@ jobs:
echo "gitleaks binary not found in the pre-commit cache" >&2
exit 1
fi
$OFFLINE "$GITLEAKS" git --verbose --redact --log-opts="origin/main..$SHA"
"$GITLEAKS" git --verbose --redact --log-opts="origin/main..$SHA"
# commit-msg stage hooks do not run under --all-files, so each commit's message is given to
# every commit-msg hook (Conventional Commits, refuse-agent-trailers); --no-verify skips them locally.
@@ -143,5 +139,5 @@ jobs:
for sha in $(git rev-list --no-merges "origin/main..$SHA"); do
git log -1 --format=%B "$sha" > "$MSG_FILE"
echo "Checking $sha"
$OFFLINE pre-commit run --hook-stage commit-msg --commit-msg-filename "$MSG_FILE"
pre-commit run --hook-stage commit-msg --commit-msg-filename "$MSG_FILE"
done
-1
View File
@@ -1,4 +1,3 @@
# Throwaway: forces the slow path for the #168 acceptance check.
# Hook repositories are pinned by commit SHA, with the release in a `# frozen:` comment: a
# tag can be moved, a commit cannot, so a moved tag shows up as a failed fetch and not as
# new code in the hook environment (supply chain, ci image and contributors alike).
+18
View File
@@ -4,6 +4,24 @@ mortis.kamino Release Notes
.. contents:: Topics
v3.1.0
======
Minor Changes
-------------
- tailscale - New role. Installs Tailscale from the upstream APT repository with the keyring pinned by sha256, sets ``--tun=userspace-networking`` in the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true, enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs ``tailscale up`` with ``tailscale_auth_key`` while the node is not Running; it can also update to the APT candidate version and remove or purge. Declares Ubuntu noble and resolute; the molecule scenario installs the real package but does not join a tailnet.
Bugfixes
--------
- cloudflared - Do not fail under ``--check`` on a host where the cloudflared account or systemd unit does not exist yet.
- docker - Do not fail under ``--check`` on a host where the Docker repository and packages are not installed yet.
- gitea - Do not fail under ``--check`` on a host where Gitea is not installed yet.
- gitea_runner - Do not fail under ``--check`` on a host where the runner account, Docker or the systemd unit does not exist yet.
- traefik - Do not fail under ``--check`` on a host where Traefik is not installed yet.
- user_management - Do not fail under ``--check`` when a managed user does not exist yet.
v3.0.0
======
+2 -2
View File
@@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab:
`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.0.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `pve_lxc`, `sshd`, `system_baseline`, `systemd_hardening`, `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.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).
## Consuming
@@ -17,7 +17,7 @@ name (FQCN) only, `mortis.kamino.<role>`:
collections:
- name: https://git.rkdr.net/mortis/kamino.git
type: git
version: v3.0.0
version: v3.1.0
```
Its dependencies (`community.general`, `ansible.posix`, `community.proxmox`) are declared in `galaxy.yml`, so
+5 -1
View File
@@ -51,6 +51,10 @@ objects:
description: Harden systemd for a system type
name: systemd_hardening
version_added: null
tailscale:
description: Install Tailscale and bring the node up
name: tailscale
version_added: null
traefik:
description: Install, configure, update or remove Traefik as a systemd binary
name: traefik
@@ -81,4 +85,4 @@ plugins:
strategy: {}
test: {}
vars: {}
version: 3.0.0
version: 3.1.0
+28
View File
@@ -446,3 +446,31 @@ releases:
- 133-drop-jammy-and-ubuntu-all.yml
- 133-ubuntu-2604.yml
release_date: '2026-11-26'
3.1.0:
changes:
bugfixes:
- cloudflared - Do not fail under ``--check`` on a host where the cloudflared
account or systemd unit does not exist yet.
- docker - Do not fail under ``--check`` on a host where the Docker repository
and packages are not installed yet.
- gitea - Do not fail under ``--check`` on a host where Gitea is not installed
yet.
- gitea_runner - Do not fail under ``--check`` on a host where the runner account,
Docker or the systemd unit does not exist yet.
- traefik - Do not fail under ``--check`` on a host where Traefik is not installed
yet.
- user_management - Do not fail under ``--check`` when a managed user does not
exist yet.
minor_changes:
- tailscale - New role. Installs Tailscale from the upstream APT repository
with the keyring pinned by sha256, sets ``--tun=userspace-networking`` in
the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true,
enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs
``tailscale up`` with ``tailscale_auth_key`` while the node is not Running;
it can also update to the APT candidate version and remove or purge. Declares
Ubuntu noble and resolute; the molecule scenario installs the real package
but does not join a tailnet.
fragments:
- 134-check-mode.yml
- tailscale-role.yml
release_date: '2026-11-26'
-17
View File
@@ -1,17 +0,0 @@
---
bugfixes:
- >-
cloudflared - Do not fail under ``--check`` on a host where the cloudflared account or systemd
unit does not exist yet.
- >-
docker - Do not fail under ``--check`` on a host where the Docker repository and packages are
not installed yet.
- >-
gitea - Do not fail under ``--check`` on a host where Gitea is not installed yet.
- >-
gitea_runner - Do not fail under ``--check`` on a host where the runner account, Docker or the
systemd unit does not exist yet.
- >-
traefik - Do not fail under ``--check`` on a host where Traefik is not installed yet.
- >-
user_management - Do not fail under ``--check`` when a managed user does not exist yet.
-9
View File
@@ -1,9 +0,0 @@
---
minor_changes:
- >-
tailscale - New role. Installs Tailscale from the upstream APT repository with the keyring pinned by sha256,
sets ``--tun=userspace-networking`` in the ``tailscaled`` flags when ``tailscale_userspace_networking`` is true,
enables ``tailscaled`` and, with ``tailscale_up`` (default ``true``), runs ``tailscale up`` with
``tailscale_auth_key`` while the node is not Running; it can also update to the APT candidate version and remove
or purge. Declares Ubuntu noble and resolute; the molecule scenario installs the real package but does not join a
tailnet.
+1 -2
View File
@@ -66,8 +66,7 @@ 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 run their tools (all but the script tests) without
network, 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
collections are used as they are. 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`
are the real consumers.
+1 -1
View File
@@ -1,7 +1,7 @@
---
namespace: mortis
name: kamino
version: 3.0.0
version: 3.1.0
readme: README.md
authors:
- Defame1297
+2 -4
View File
@@ -61,10 +61,8 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
- **Bake in:** every tool, collection, hook environment and package a CI job uses is in its
image; a job downloads at run time only on the slow path (a pull request that changes a pin
file). *Why:* a run that downloads is slower and depends on the network. *Held:* control: on
the fast path the Lint and Build tool steps run without network, so a download fails the job;
review for a new tool step without the prefix, for the script tests, which keep network, and
for Molecule.
file). *Why:* a run that downloads is slower and depends on the network. *Held:* review until
the network-off check (#168) lands.
- **Recorded speed:** a speed optimisation that adds machinery states its measured saving where
it lives (a comment next to it). *Why:* machinery is kept only for a saving someone can check.
*Held:* review.