Commit Graph
13 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 83e6accdc1 mastodon: replace deprecated apt_key with keyring files
apt_key is deprecated as well; the yarn and nodejs keys are already
downloaded as keyring files and referenced via signed_by. Drop the
redundant apt_key task, give yarn a signed_by too, normalize the keyring
filenames to the *-archive-keyring.gpg convention, and clean up the old
keyring files.
2026-10-22 19:24:53 +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 80987cd647 removed pause and added migration key 2022-04-21 16:04:01 +02:00
rene f5d1ef1c4e corrected repos 2022-04-21 15:24:41 +02:00
rene f201dc78bf added an update_cache 2022-04-21 15:18:30 +02:00
rene ce5b882748 quoting 2022-04-21 15:07:25 +02:00
rene b1fe7663de added pause for debugging 2022-04-21 15:02:49 +02:00
rene 20898c310a use signed repos 2022-04-21 14:57:47 +02:00
rene 83e13d8922 added new repo 2022-04-21 12:09:11 +02:00
rene 98b189a3bf removed unneeded task 2022-03-15 17:50:52 +01:00
rene 8b4579bb90 role mastodon added 2022-03-15 14:23:01 +01:00