16 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 450841e15c removed some systems from backup 2026-10-14 19:38:52 +02:00
rene 4b7e8d25ed for samba ADs 2026-09-24 09:11:38 +02:00
rene 0d847f760e reworked by Gemini 2026-01-21 17:24:20 +01:00
rene 60e23a9b73 use latest omada version 2025-10-22 14:09:35 +02:00
rene c3ac1cfe97 use of correct version 2025-10-22 10:13:34 +02:00
rene 59640c192d Omada Controller needs a specific MongoDB version 2025-10-21 16:24:23 +02:00
rene 50a1f4cfa3 syntax 2025-10-21 16:10:18 +02:00
rene 845f9f8f08 syntax 2025-10-21 16:07:28 +02:00
rene 4643606020 apt-key is deprecated 2025-10-21 15:47:07 +02:00
rene 21b4dbc2e2 Omada Controller needs MongoDB 2025-10-21 15:29:44 +02:00
rene 35fdf5782b do not use a specific version 2025-10-21 14:54:12 +02:00
rene 9a41327e3a included Debian Trixie 2025-10-21 14:39:43 +02:00
rene 019bf1e584 moved from community collection to built-in command 2025-10-21 14:26:26 +02:00
rene 1dfdd4acc6 Installation eines Omada-Controllers 2025-10-21 14:21:47 +02:00