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 48689bc989 changed php version for nextcloud 2026-01-28 18:30:02 +01:00
rene ddb1b1adac use other methods 2026-01-26 15:14:18 +01:00
rene 24f5e5b221 switched to new facts-syntax 2026-01-12 13:58:58 +01:00
rene 9fd07d57a4 switched to new facts-syntax 2026-01-12 12:31:24 +01:00
rene 448f22b422 Switched to usage of FQCNs 2025-11-26 15:48:40 +01:00
rene fa0dd762a7 role must not be be named like a host 2025-10-03 09:19:47 +02:00
rene 519c7be93d changed name ob webserver role 2025-10-01 14:23:51 +02:00
rene 29e39d0986 snmp extends for apache 2025-06-04 11:28:41 +02:00
rene 0d41dbf5a2 typo 2025-05-06 14:44:36 +02:00
rene c752fe25e5 typo 2025-05-06 14:37:35 +02:00
rene 6c687774d0 removed unused option 2025-05-06 14:30:53 +02:00
rene e4c70fc4c9 changed role to webservers due to conflicting with hostnames 2025-05-06 14:06:10 +02:00