Commit Graph
12 Commits
Author SHA1 Message Date
rene 97c64189c5 apt: use deb822_repository only on ansible-core >= 2.15
ansible.builtin.deb822_repository was added in ansible-core 2.15. Hosts
running an older ansible-core cannot use it at all, so gate the choice of
module on the runtime version.

Introduce the shared role apt_repos (tasks_from: add) which takes a
single structured apt_repo dict and:
- uses deb822_repository when ansible_version.full >= 2.15 and removes
  the legacy .list file,
- falls back to apt_repository (still available before its removal in
  2.25) and builds the equivalent 'deb [opts] uri suite components' line
  otherwise.

All six repository definitions now go through the role, keeping the
deb822 and legacy representations in sync from one source of truth. The
backup role's repository task keeps its tags via apply, and its tailscale
install updates the apt cache explicitly since the previously notified
'update apt cache' handler does not exist.
2026-10-23 09:13:42 +02:00
rene 74140629f3 apt: migrate apt_repository to deb822_repository
apt_repository is deprecated in favor of deb822_repository and will be
removed in ansible-core 2.25. Convert all six call sites (jitsimeet,
tailscale, mongodb/omada, php-sury/nextcloud, yarn/nodejs/mastodon),
install python3-debian as a dependency where required, remove the legacy
.list files so repositories are not duplicated, and update the apt cache
explicitly where deb822_repository no longer does it.

Also replace the remaining bare ansible_lsb.codename with
ansible_facts['distribution_release'] in the mastodon role.
2026-10-22 19:21:09 +02:00
rene 31a6a3e3d7 facts: migrate bare ansible_* facts to ansible_facts[]
ansible-core deprecates injecting top-level facts as variables
(INJECT_FACTS_AS_VARS) and will stop doing so in 2.24. Convert all
remaining bare fact references (ansible_default_ipv4/ipv6, os_family,
distribution_release, date_time, ...) to the ansible_facts[] form.

Also fixes a typo (ansbile_date_time) in the postfix backup task.
2026-10-22 18:22:34 +02:00
rene 450841e15c removed some systems from backup 2026-10-14 19:38:52 +02:00
rene aa6da6c59e fixed installation of JItsimeet 2026-01-22 12:32:35 +01:00
rene de663b64b4 get keys 2024-11-30 10:37:13 +01:00
rene 3c14509f56 skip tasks if preinstalled 2022-03-10 10:59:21 +01:00
rene 03e72aad7b corrected block statement 2022-02-25 10:58:40 +01:00
rene 98f7cf0339 make use of preinstalled variable 2022-02-25 10:38:41 +01:00
rene ab0ef7280e flush handlers to force and apt update 2022-02-21 16:38:21 +01:00
rene 3a4b8a219b force notify 2022-02-21 16:27:05 +01:00
rene 47f59d9e85 install jitsi-meet 2022-02-20 22:41:13 +01:00