diff --git a/.ansible-lint b/.ansible-lint index 22666c0..ee591d8 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -18,6 +18,12 @@ exclude_paths: # which the hook runs, links the checkout as ansible_collections/mortis/kamino. A bare `ansible-lint` # does not do that and reports the role names as not found; run it through the hook. +# meta-runtime[unsupported-version] checks requires_ansible against a list built into +# ansible-lint, which ends at 2.19 in 26.10.1. The floor is the pinned ansible-core minor +# (meta/runtime.yml), so that minor is added here; move it with the pin. +supported_ansible_also: + - "2.22." + skip_list: # role-name requires ^[a-z][a-z0-9_]*$, which rejects the leading underscore that marks an # internal role (_binary_update), as in prometheus.prometheus (roles/_common). diff --git a/changelogs/fragments/ansible-core-2.22-floor.yml b/changelogs/fragments/ansible-core-2.22-floor.yml new file mode 100644 index 0000000..72de520 --- /dev/null +++ b/changelogs/fragments/ansible-core-2.22-floor.yml @@ -0,0 +1,6 @@ +--- +breaking_changes: + - >- + Raise the minimum ansible-core to 2.22 (controller Python 3.14); 2.19, 2.20 and 2.21 + are no longer supported. ``requires_ansible`` and every role's ``min_ansible_version`` + now equal the ansible-core minor that CI tests. diff --git a/meta/runtime.yml b/meta/runtime.yml index 4c878ae..0200ca1 100644 --- a/meta/runtime.yml +++ b/meta/runtime.yml @@ -1,5 +1,3 @@ --- -# The roles were written against ansible-core 2.19 and nothing older has been -# tested. Raise this when a role needs a newer core; lowering it needs the molecule and -# sanity runs on the older core first. -requires_ansible: ">=2.19.0" +# Equals the minor of the pinned ansible-core in requirements-dev.txt; a Lint check holds it. +requires_ansible: ">=2.22.0" diff --git a/roles/_binary_update/meta/main.yml b/roles/_binary_update/meta/main.yml index 5f6b370..95824ae 100644 --- a/roles/_binary_update/meta/main.yml +++ b/roles/_binary_update/meta/main.yml @@ -6,7 +6,7 @@ galaxy_info: description: >- [INTERNAL] Swap a staged, verified binary into place for a systemd service, check its version and roll back on failure. Called only by roles of this Collection; not part of its public API. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/cloudflared/meta/main.yml b/roles/cloudflared/meta/main.yml index ce972e9..e5dd2d2 100644 --- a/roles/cloudflared/meta/main.yml +++ b/roles/cloudflared/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install, update and remove cloudflared for a locally managed Cloudflare Tunnel, with its DNS records, and mint the tunnel on request. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/docker/meta/main.yml b/roles/docker/meta/main.yml index adb995d..1625f0b 100644 --- a/roles/docker/meta/main.yml +++ b/roles/docker/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install, update or remove Docker Engine from the upstream Docker APT repository and add users to the docker group. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/fail2ban/meta/main.yml b/roles/fail2ban/meta/main.yml index 0455a7b..316b3d7 100644 --- a/roles/fail2ban/meta/main.yml +++ b/roles/fail2ban/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install Fail2Ban, manage jail.local and the service, and deploy per-service jails and filters into jail.d. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/gitea/meta/main.yml b/roles/gitea/meta/main.yml index 510b71e..5e8605a 100644 --- a/roles/gitea/meta/main.yml +++ b/roles/gitea/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install, configure, update and remove the Gitea git service as a systemd binary with a GPG-verified download, UFW rules and a Fail2Ban jail. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/gitea_runner/meta/main.yml b/roles/gitea_runner/meta/main.yml index a6ca5bd..557fa24 100644 --- a/roles/gitea_runner/meta/main.yml +++ b/roles/gitea_runner/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install, register, configure, update and remove a Gitea Actions runner with Docker and an optional host-executor label. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/network_interfaces/meta/main.yml b/roles/network_interfaces/meta/main.yml index ab3eb61..1d70480 100644 --- a/roles/network_interfaces/meta/main.yml +++ b/roles/network_interfaces/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Render /etc/network/interfaces for Proxmox hosts from manual and bridge definitions, validate with ifreload and restore the backup on failure. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Debian versions: diff --git a/roles/sshd/meta/main.yml b/roles/sshd/meta/main.yml index 8ee23c9..dbfe02a 100644 --- a/roles/sshd/meta/main.yml +++ b/roles/sshd/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Write a hardened sshd drop-in selected by profile (pve, ubuntu_lxc, ubuntu_vm), guarded against SSH lock-out. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/system_baseline/meta/main.yml b/roles/system_baseline/meta/main.yml index ce32cd5..f886adc 100644 --- a/roles/system_baseline/meta/main.yml +++ b/roles/system_baseline/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: "Per-system-type OS baseline: apt upgrade, packages, unattended-upgrades, locale, timezone, journal cap, sysctl, tmpfs mounts, reboot." - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/systemd_hardening/meta/main.yml b/roles/systemd_hardening/meta/main.yml index f31eb32..3d7de2b 100644 --- a/roles/systemd_hardening/meta/main.yml +++ b/roles/systemd_hardening/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Disable and mask risky services per system type, harden the systemd manager and apply opt-in per-service sandboxing drop-ins. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/traefik/meta/main.yml b/roles/traefik/meta/main.yml index cd386f3..3cd7d72 100644 --- a/roles/traefik/meta/main.yml +++ b/roles/traefik/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Install, configure, update and remove the Traefik reverse proxy as a systemd binary with Cloudflare DNS-challenge certificates. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/ufw/meta/main.yml b/roles/ufw/meta/main.yml index 2404269..124ed86 100644 --- a/roles/ufw/meta/main.yml +++ b/roles/ufw/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later AND GPL-3.0-only description: Install and configure UFW with default policies, allow rules, before.rules and sysctl overrides, guarded against SSH lock-out. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: diff --git a/roles/user_management/meta/main.yml b/roles/user_management/meta/main.yml index 04f8de3..eed66b2 100644 --- a/roles/user_management/meta/main.yml +++ b/roles/user_management/meta/main.yml @@ -5,7 +5,7 @@ galaxy_info: author: Defame1297 license: GPL-3.0-or-later description: Manage the primary ansible user and additional users, their authorized_keys, sudo and cloud-init, with a key-only root bootstrap fallback. - min_ansible_version: "2.19" + min_ansible_version: "2.22" platforms: - name: Ubuntu versions: