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.
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.