73 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 7804934a8a cleaned up list of backup sources 2026-10-05 11:40:09 +02:00
rene 258f196a61 cleaned up list of backup sources 2026-10-02 17:24:23 +02:00
rene 77831e1dd1 updated list for hosts to backup 2026-09-30 20:25:13 +02:00
rene 4b7e8d25ed for samba ADs 2026-09-24 09:11:38 +02:00
rene 007488952d removed one backup host 2026-01-26 14:05:23 +01:00
rene 9bf90e14d0 removed dir 2026-01-25 10:12:52 +01:00
rene 223821c73f new backup list 2026-01-23 12:09:56 +01:00
rene 0e46afb406 defined some excludes for backup 2026-01-23 09:48:15 +01:00
rene 17b1d14c10 adde new host 2026-01-23 09:47:47 +01:00
rene d8992082b2 added new hosts to be backed up 2026-01-22 12:11:53 +01:00
rene 40ba445f76 changed and reordered list 2026-01-22 10:25:09 +01:00
rene f2cd0ec246 removed hosts that need no backup 2026-01-15 16:07:01 +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 e7d2d232a8 Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2025-12-12 14:40:47 +01:00
rene e4c4d7be8c add backup config for endor 2025-12-12 14:39:54 +01:00
rene 789eeeb8c9 paths removed from backup 2025-12-09 16:43:47 +01:00
rene 7c359f2070 new path 2025-12-08 11:25:11 +01:00
rene b170189008 new hosts 2025-12-02 12:02:53 +01:00
rene 158b836626 new host 2025-12-02 11:56:47 +01:00
rene 448f22b422 Switched to usage of FQCNs 2025-11-26 15:48:40 +01:00
rene 264efcc7ea actually install tailscale 2025-10-22 18:29:08 +02:00
rene d1d15ea480 add tailscale to backup role 2025-10-14 09:19:55 +02:00
rene 2c53a79453 removed unnessessary hostname 2025-10-05 12:42:59 +02:00
rene 37589596ab removed triling dot 2025-10-03 09:06:52 +02:00
rene de655c5a09 new list 2025-10-01 10:53:45 +02:00
rene 18b49ca3ce added hosts 2025-05-23 11:23:00 +02:00
rene bd4eb74b53 renamed hosts and new list 2025-05-23 11:20:51 +02:00
rene 9d6aa18d27 changed name 2025-05-22 10:23:09 +02:00
rene 3d9e89162e added new hosts 2025-05-20 15:51:40 +02:00
rene 4b9ecf4da4 added new hosts 2025-05-20 10:27:21 +02:00
rene c1cdf909f7 adjusted FQDNs 2025-05-20 09:19:09 +02:00
rene 6cbdc679e6 new hosts 2025-04-24 16:46:53 +02:00
René Mewißen 6ef081a17b typo 2025-04-13 13:21:26 +02:00
rene 36e1859d2e backup folder added 2025-04-10 10:39:31 +02:00
rene 89f5dcefa8 hostvars not needed anymore for backup 2025-04-10 10:24:18 +02:00
rene a4b9d24fc0 comment syntax 2025-04-09 10:19:13 +02:00
rene 6ac9172f67 rearranging vars 2025-04-09 10:09:42 +02:00
rene f33f6c1acd new host 2025-04-08 17:21:13 +02:00
rene 07b7f7a4f7 syntax? 2025-04-06 11:48:48 +02:00
rene 6708e8bf0f removed hosts 2025-04-02 09:44:38 +02:00
rene e310003478 new host 2025-03-29 18:41:57 +01:00
rene 846d5d4105 new host 2025-03-29 18:24:18 +01:00
rene 5104411152 force update 2024-12-24 12:49:53 +01:00
rene f77923544e new system to backup 2024-12-18 08:54:07 +01:00
rene 59ea945611 new hosts to backup 2024-12-01 04:02:10 +01:00
rene 31e0fbb332 new distro 2024-11-29 22:38:25 +01:00