59 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 52a8f0f3cf jitsimeet: fix restart_jitsi handler
The handler passed 'prosody jicofo jitsi-videobridge2' as a single service
name (invalid) and used notify inside a handler (not supported, silently
ignored). As a result config/branding changes never restarted the services.
Loop over the three services and drop the ineffective nested notify; nginx is
already restarted by its own notify.
2026-10-22 18:52:05 +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 aa6da6c59e fixed installation of JItsimeet 2026-01-22 12:32:35 +01:00
rene 9fd07d57a4 switched to new facts-syntax 2026-01-12 12:31:24 +01:00
rene da68d324ca Handler neu organisiert 2025-10-15 10:17:29 +02:00
rene fa0dd762a7 role must not be be named like a host 2025-10-03 09:19:47 +02:00
rene de663b64b4 get keys 2024-11-30 10:37:13 +01: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 b570c04940 added vars for debian 2022-04-21 18:42:25 +02:00
rene 3cbffd13f0 use default with omit 2022-03-15 14:19:52 +01:00
rene 164c9f2393 changed syntax 2022-03-11 16:14:56 +01:00
rene 33fc66f81c include instead of import 2022-03-11 16:13:27 +01:00
rene 99ba8d52b6 optimized snmpd 2022-03-11 15:43:17 +01:00
rene 2ff81b17ea moved handlers to global 2022-03-11 14:05:49 +01:00
rene ac80dc9548 removed unneeded dirs 2022-03-10 12:02:21 +01:00
rene a55ec37dbf removed unneccessary files 2022-03-10 11:31:19 +01:00
rene 3c14509f56 skip tasks if preinstalled 2022-03-10 10:59:21 +01:00
rene 1a70db4baf copy update script 2022-03-08 12:30:39 +01:00
rene 2ac74888eb removed some interims doku 2022-03-07 14:47:14 +01:00
rene 7eea9f8b4d Merge branch 'master' of ssh://gitlab.social.my-wan.de:22422/rene/ansible-pull 2022-03-07 14:41:39 +01:00
rene d1aaaabba5 change mode on files 2022-03-07 14:34:53 +01:00
rene 985ba7c42f only delete a file if it is present 2022-03-07 14:34:32 +01:00
rene 9cd7839067 enabled cron 2022-03-05 00:15:21 +01:00
rene 03e72aad7b corrected block statement 2022-02-25 10:58:40 +01:00
rene 5d162d9f32 corrected typos, set vars 2022-02-25 10:51:34 +01:00
rene 98f7cf0339 make use of preinstalled variable 2022-02-25 10:38:41 +01:00
rene aefba529db introduced preinstalled variable 2022-02-25 09:56:04 +01:00
rene 28ee3218b4 removed include_vars 2022-02-24 23:59:07 +01:00
rene 34243a0c42 try to include vars file 2022-02-24 21:58:46 +01:00
rene 9b98bf6222 use loop_control -> index_var 2022-02-21 18:48:30 +01:00
rene 9467ebab10 wrong variable 2022-02-21 18:33:38 +01:00
rene 4e9df7fa53 added a loop control 2022-02-21 18:29:50 +01:00
rene 6c9488159a globbing in replace for path does not work
so added a task to find all files to change
and loop over the registered var
2022-02-21 18:08:55 +01:00
rene 306666bcd1 language files must be changed, too 2022-02-21 17:55:49 +01:00
rene 547cfd9a3a a notify is needed 2022-02-21 17:36:33 +01:00
rene b3c81b005d escaping the '.' in a regex does not work 2022-02-21 17:32:03 +01:00
rene a7cd6f4d03 adjusted file permissions
and got rid of the task to do the same,
because that would break further ansible-pull calls
2022-02-21 17:27:24 +01:00
rene e776ac21ba Some replacements added 2022-02-21 17:22:24 +01:00
rene da0e0d7df0 service needs a string not a list 2022-02-21 16:50:58 +01:00
rene ab0ef7280e flush handlers to force and apt update 2022-02-21 16:38:21 +01:00
rene 3a4b8a219b force notify 2022-02-21 16:27:05 +01:00
rene 4a380cd902 added files and tasks 2022-02-21 15:49:29 +01:00
rene 5fd3b62923 make scripts executable 2022-02-21 01:11:44 +01:00
rene af77fe2724 typo 2022-02-21 01:07:02 +01:00
rene 47f59d9e85 install jitsi-meet 2022-02-20 22:41:13 +01:00
rene eef1d72683 global handlers do not work as intended 2022-02-20 20:30:26 +01:00