67 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 31a6a3e3d7 facts: migrate bare ansible_* facts to ansible_facts[]
ansible-core deprecates injecting top-level facts as variables
(INJECT_FACTS_AS_VARS) and will stop doing so in 2.24. Convert all
remaining bare fact references (ansible_default_ipv4/ipv6, os_family,
distribution_release, date_time, ...) to the ansible_facts[] form.

Also fixes a typo (ansbile_date_time) in the postfix backup task.
2026-10-22 18:22:34 +02:00
rene 450841e15c removed some systems from backup 2026-10-14 19:38:52 +02:00
rene 543570bbd1 moved mewimeet to server group and adjusted node version 2026-01-22 12:12:27 +01: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 6a3d82b0a4 all var files to lower characters 2023-01-30 11:28:54 +01: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 e56462c716 letsencrypt renewal hook added 2022-05-03 14:03:51 +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 1d030617d4 changed node version 2022-04-20 23:44:02 +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 de595fb61d added additional packages 2022-04-20 21:27:18 +02:00
rene ca107534bc added migration var 2022-04-20 17:34:20 +02:00
rene eb7d69a05e new version 2022-04-01 20:48:57 +02:00
rene 1ddf36bf0a checkout latest version 2022-03-24 23:53:03 +01:00
rene 181d3e3b13 changed version 2022-03-24 22:39:32 +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 ae05c773ec overlooked an appearance of {{ mastodon_host }} 2022-03-18 19:33:12 +01:00
rene 4617d12c48 overlooked a ' 2022-03-18 19:04:40 +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 24a9487730 set defaults 2022-03-17 19:01:51 +01:00
rene 57f0333e8a changed template source 2022-03-17 10:44:48 +01:00