From 69576a4dd783bf064ed728470d1e1107d62f97c8 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Wed, 25 Nov 2026 19:45:06 +0000 Subject: [PATCH] chore(release): 2.1.0 Minor release: adds the pihole role and the system_baseline system_baseline_apt_tmpdir input, and fixes the apt upgrade losing its staged packages when it restarts ssh.service on a host with PrivateTmp. Assisted-by: Claude Code:claude-opus-5-5 --- CHANGELOG.rst | 14 ++++++++++ README.md | 4 +-- changelogs/.plugin-cache.yaml | 6 ++++- changelogs/changelog.yaml | 27 +++++++++++++++++++ changelogs/fragments/pihole-role.yml | 8 ------ .../fragments/system-baseline-apt-tmpdir.yml | 12 --------- galaxy.yml | 2 +- 7 files changed, 49 insertions(+), 24 deletions(-) delete mode 100644 changelogs/fragments/pihole-role.yml delete mode 100644 changelogs/fragments/system-baseline-apt-tmpdir.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index aa758cb..cd5d23a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,20 @@ mortis.kamino Release Notes .. contents:: Topics +v2.1.0 +====== + +Minor Changes +------------- + +- pihole - New role. Installs Pi-hole v6 on Ubuntu noble by cloning the upstream repository and running its installer unattended, with ``pihole.toml`` rendered from ``pihole_default`` merged with ``pihole_overrides``. ``pihole_web_password`` is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived from codeberg.org/ansible/pihole (GPL-3.0-only), with Pi-hole FTL comment text (EUPL-1.2). +- system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), the directory the apt upgrade and autoremove use as ``TMPDIR``. The role creates it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` entry point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative path or a ``..``. + +Bugfixes +-------- + +- system_baseline - the apt upgrade no longer loses its staged packages when it upgrades ``openssh-server`` on a host whose ``ssh.service`` has ``PrivateTmp=yes``. The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of the upgrade, so dpkg failed with "cannot access archive" and left packages unpacked but not configured. The upgrade and the autoremove now run with ``TMPDIR`` set to ``system_baseline_apt_tmpdir``, and the role opens a new connection afterwards. + v2.0.1 ====== diff --git a/README.md b/README.md index d8af1fa..86d4ef5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ An Ansible Collection of reusable, hardened roles for a self-hosted home lab: `pihole`, `sshd`, `system_baseline`, `systemd_hardening`, `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 2.0.1 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `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 2.1.0 holds the `cloudflared`, `docker`, `fail2ban`, `gitea`, `gitea_runner`, `network_interfaces`, `pihole`, `sshd`, `system_baseline`, `systemd_hardening`, `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.`: collections: - name: https://git.rkdr.net/mortis/kamino.git type: git - version: v2.0.1 + version: v2.1.0 ``` Its dependencies (`community.general`, `ansible.posix`) are declared in `galaxy.yml`, so diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index e504287..1f4807d 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -31,6 +31,10 @@ objects: description: Manage /etc/network/interfaces name: network_interfaces version_added: null + pihole: + description: Install and configure Pi-hole from the upstream repository + name: pihole + version_added: null sshd: description: Write a hardened sshd drop-in name: sshd @@ -71,4 +75,4 @@ plugins: strategy: {} test: {} vars: {} -version: 2.0.1 +version: 2.1.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index a9e4c14..4d92dd0 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -376,3 +376,30 @@ releases: - docker-boot-shutdown-units.yml - role-readme-headings.yml release_date: '2026-11-25' + 2.1.0: + changes: + bugfixes: + - system_baseline - the apt upgrade no longer loses its staged packages when + it upgrades ``openssh-server`` on a host whose ``ssh.service`` has ``PrivateTmp=yes``. + The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of + the upgrade, so dpkg failed with "cannot access archive" and left packages + unpacked but not configured. The upgrade and the autoremove now run with ``TMPDIR`` + set to ``system_baseline_apt_tmpdir``, and the role opens a new connection + afterwards. + minor_changes: + - pihole - New role. Installs Pi-hole v6 on Ubuntu noble by cloning the upstream + repository and running its installer unattended, with ``pihole.toml`` rendered + from ``pihole_default`` merged with ``pihole_overrides``. ``pihole_web_password`` + is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. + A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived + from codeberg.org/ansible/pihole (GPL-3.0-only), with Pi-hole FTL comment + text (EUPL-1.2). + - system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), + the directory the apt upgrade and autoremove use as ``TMPDIR``. The role creates + it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` + entry point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative + path or a ``..``. + fragments: + - pihole-role.yml + - system-baseline-apt-tmpdir.yml + release_date: '2026-11-25' diff --git a/changelogs/fragments/pihole-role.yml b/changelogs/fragments/pihole-role.yml deleted file mode 100644 index 5131fdb..0000000 --- a/changelogs/fragments/pihole-role.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -minor_changes: - - >- - pihole - New role. Installs Pi-hole v6 on Ubuntu noble by cloning the upstream repository and running - its installer unattended, with ``pihole.toml`` rendered from ``pihole_default`` merged with ``pihole_overrides``. - ``pihole_web_password`` is a required secret input, and ``pihole_overrides`` must set ``config.dns.interface``. - A change to ``pihole.toml`` runs the installer's reconfigure mode. Derived from codeberg.org/ansible/pihole - (GPL-3.0-only), with Pi-hole FTL comment text (EUPL-1.2). diff --git a/changelogs/fragments/system-baseline-apt-tmpdir.yml b/changelogs/fragments/system-baseline-apt-tmpdir.yml deleted file mode 100644 index 97a5557..0000000 --- a/changelogs/fragments/system-baseline-apt-tmpdir.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -bugfixes: - - >- - system_baseline - the apt upgrade no longer loses its staged packages when it upgrades ``openssh-server`` on a host whose - ``ssh.service`` has ``PrivateTmp=yes``. The restart of that unit deleted ``/tmp`` and ``/var/tmp`` in the middle of the upgrade, so - dpkg failed with "cannot access archive" and left packages unpacked but not configured. The upgrade and the autoremove now run with - ``TMPDIR`` set to ``system_baseline_apt_tmpdir``, and the role opens a new connection afterwards. -minor_changes: - - >- - system_baseline - add ``system_baseline_apt_tmpdir`` (default ``/var/cache/system-baseline-apt-tmp``), the directory the apt upgrade and - autoremove use as ``TMPDIR``. The role creates it (root, mode ``0700``) when it runs the ``update`` flow, including the ``update`` entry - point, and refuses a value under ``/tmp`` or ``/var/tmp``, a relative path or a ``..``. diff --git a/galaxy.yml b/galaxy.yml index e32127f..238b60a 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 2.0.1 +version: 2.1.0 readme: README.md authors: - Defame1297