From b7bac07757236db7598983812a5b717e60675f0d Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Fri, 27 Nov 2026 21:36:05 +0000 Subject: [PATCH] chore(release): 3.2.0 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 --- CHANGELOG.rst | 21 +++++++ README.md | 4 +- changelogs/.plugin-cache.yaml | 2 +- changelogs/changelog.yaml | 58 +++++++++++++++++++ changelogs/fragments/364-ansible-facts.yml | 15 ----- changelogs/fragments/399-extra-packages.yml | 8 --- .../400-skip-upgrade-during-vzdump.yml | 6 -- .../fragments/401-journal-max-use-empty.yml | 10 ---- changelogs/fragments/apt-cache-valid-time.yml | 7 --- .../cloudflared-tunnel-lookup-delay.yml | 6 -- changelogs/fragments/refusals-in-verify.yml | 6 -- changelogs/fragments/traefik-release-url.yml | 5 -- galaxy.yml | 2 +- 13 files changed, 83 insertions(+), 67 deletions(-) delete mode 100644 changelogs/fragments/364-ansible-facts.yml delete mode 100644 changelogs/fragments/399-extra-packages.yml delete mode 100644 changelogs/fragments/400-skip-upgrade-during-vzdump.yml delete mode 100644 changelogs/fragments/401-journal-max-use-empty.yml delete mode 100644 changelogs/fragments/apt-cache-valid-time.yml delete mode 100644 changelogs/fragments/cloudflared-tunnel-lookup-delay.yml delete mode 100644 changelogs/fragments/refusals-in-verify.yml delete mode 100644 changelogs/fragments/traefik-release-url.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c20337f..e070c3e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ====== diff --git a/README.md b/README.md index b2f970d..2841452 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`, `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.`: 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 diff --git a/changelogs/.plugin-cache.yaml b/changelogs/.plugin-cache.yaml index 8d3c40a..506a305 100644 --- a/changelogs/.plugin-cache.yaml +++ b/changelogs/.plugin-cache.yaml @@ -85,4 +85,4 @@ plugins: strategy: {} test: {} vars: {} -version: 3.1.0 +version: 3.2.0 diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 8e11d64..162c0ab 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -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' diff --git a/changelogs/fragments/364-ansible-facts.yml b/changelogs/fragments/364-ansible-facts.yml deleted file mode 100644 index 30b737a..0000000 --- a/changelogs/fragments/364-ansible-facts.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -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. diff --git a/changelogs/fragments/399-extra-packages.yml b/changelogs/fragments/399-extra-packages.yml deleted file mode 100644 index 3e1c6ae..0000000 --- a/changelogs/fragments/399-extra-packages.yml +++ /dev/null @@ -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. diff --git a/changelogs/fragments/400-skip-upgrade-during-vzdump.yml b/changelogs/fragments/400-skip-upgrade-during-vzdump.yml deleted file mode 100644 index bc54053..0000000 --- a/changelogs/fragments/400-skip-upgrade-during-vzdump.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -minor_changes: - - >- - 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. diff --git a/changelogs/fragments/401-journal-max-use-empty.yml b/changelogs/fragments/401-journal-max-use-empty.yml deleted file mode 100644 index c5b3d36..0000000 --- a/changelogs/fragments/401-journal-max-use-empty.yml +++ /dev/null @@ -1,10 +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 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=``. diff --git a/changelogs/fragments/apt-cache-valid-time.yml b/changelogs/fragments/apt-cache-valid-time.yml deleted file mode 100644 index 5f0df7c..0000000 --- a/changelogs/fragments/apt-cache-valid-time.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -minor_changes: - - >- - 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. diff --git a/changelogs/fragments/cloudflared-tunnel-lookup-delay.yml b/changelogs/fragments/cloudflared-tunnel-lookup-delay.yml deleted file mode 100644 index 18e305f..0000000 --- a/changelogs/fragments/cloudflared-tunnel-lookup-delay.yml +++ /dev/null @@ -1,6 +0,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. diff --git a/changelogs/fragments/refusals-in-verify.yml b/changelogs/fragments/refusals-in-verify.yml deleted file mode 100644 index b5791aa..0000000 --- a/changelogs/fragments/refusals-in-verify.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -trivial: - - >- - docker, sshd, system_baseline, systemd_hardening - The Molecule scenarios check the refusals and the - accepted inputs once, on the controller, in verify instead of in every converge run; the README Tests - sections say so. diff --git a/changelogs/fragments/traefik-release-url.yml b/changelogs/fragments/traefik-release-url.yml deleted file mode 100644 index e1e1961..0000000 --- a/changelogs/fragments/traefik-release-url.yml +++ /dev/null @@ -1,5 +0,0 @@ ---- -minor_changes: - - >- - 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). diff --git a/galaxy.yml b/galaxy.yml index 57eb7cb..4b97741 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: mortis name: kamino -version: 3.1.0 +version: 3.2.0 readme: README.md authors: - Defame1297 -- 2.43.0