51 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 9fd07d57a4 switched to new facts-syntax 2026-01-12 12:31:24 +01:00
rene fa0dd762a7 role must not be be named like a host 2025-10-03 09:19:47 +02:00
rene ff2a52b1d8 beruecksichtige zeichengroesse 2023-01-23 16:15:01 +01:00
rene 795c217fb6 removed restart command in favour of renewal-hook 2022-10-07 10:02:43 +02:00
rene 1d26422bcc switched to certbot 2022-04-22 00:10:41 +02:00
rene 703c7db3b9 perform task only if some file does not exist 2022-04-21 16:52:08 +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 05c2de8bb3 added additional packages 2022-04-21 12:09:01 +02:00
rene e3c04d813d rearranged tasks 2022-04-21 12:08:37 +02:00
rene f916e28394 additional commands 2022-04-20 21:27:50 +02:00
rene c3d6892609 rearranged tasks 2022-04-20 21:27:37 +02:00
rene ca107534bc added migration var 2022-04-20 17:34:20 +02:00
rene 1ddf36bf0a checkout latest version 2022-03-24 23:53:03 +01:00
rene 86829f56c4 wrong var again 2022-03-24 18:21:54 +01:00
rene 2cbb167af9 used wrong var 2022-03-24 18:16:00 +01:00
rene f148a4ebdd mass replacement has its culpits 2022-03-24 18:10:34 +01:00
rene aa9ef72b4d mass replacement also replaced the correct strings 2022-03-24 18:04:53 +01:00
rene f9bd653391 replaced ~ with more reliable data 2022-03-24 17:57:11 +01:00
rene 267995057b replaced ~ with more reliable data 2022-03-24 17:29:12 +01:00
rene 55f0e32c84 disabled cron for ansible and added error handler 2022-03-24 15:34:19 +01:00
rene 50dd2691d5 correct use of default with variable 2022-03-18 18:53:30 +01:00
rene 18f0ce341c debug 2022-03-18 18:30:39 +01:00
rene a99736ffd1 missing curly braces 2022-03-18 18:03:06 +01:00
rene 13ec4ea32c debug 2022-03-18 17:54:35 +01:00
rene 1c42aa9cfd copy despite the var 2022-03-18 17:48:51 +01:00
rene 0e43a09c96 reordered block statements 2022-03-18 17:11:38 +01:00
rene 1fafdad7a3 execute tasks as user mastodon 2022-03-18 17:01:33 +01:00
rene 7427614056 execute tasks as user mastodon 2022-03-18 16:54:46 +01:00
rene 57f0333e8a changed template source 2022-03-17 10:44:48 +01:00
rene 98c877a8ce quoting 2022-03-17 09:48:29 +01:00
rene 1dce266e8d copy nginx config nevertheles if cert is present 2022-03-16 16:53:45 +01:00
rene 74c6b40163 added an empty line for better readability 2022-03-16 16:53:12 +01:00
rene 37c69565e4 changed path and link 2022-03-16 11:23:08 +01:00
rene 1168c5a0ed included task to install needed packages 2022-03-16 11:00:21 +01:00
rene ee16c0c56f empty password if var not set 2022-03-16 10:48:17 +01:00
rene 4ed0b881da quotes 2022-03-16 10:06:52 +01:00
rene 4048e2c997 become postgres to setup db 2022-03-16 10:02:39 +01:00
rene 22b95053ce faulty replacement corrcted 2022-03-16 09:58:40 +01:00
rene 48a3ac262f added debugging 2022-03-15 18:45:52 +01:00
rene 98b189a3bf removed unneeded task 2022-03-15 17:50:52 +01:00