Commit Graph
1121 Commits
Author SHA1 Message Date
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 4f1f9026d6 global_handlers: migrate bare ansible_os_family to ansible_facts
Missed in the earlier repo-wide facts migration because it lives outside
roles/.
2026-10-22 18:56:00 +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 3d6f13c94e nameserver: always deploy pdns-recursor config and restart on change
The recursor config template used 'force: no', so an already-present
/etc/powerdns/recursor.d/010-custom.conf was never updated. Hosts that had a
stale file were missing 'forward-zones-recurse = universe.local=...', which
breaks resolution of internal names (e.g. step-ca.universe.local).

Remove force: no so the template is always applied, and add a
restart_pdns_recursor handler notified on config change.
2026-10-22 18:46:03 +02:00
rene 977db95652 changed settings 2026-10-22 18:32:32 +02:00
rene 37ff1e464e nameserver: disable systemd-resolved on powerdns_server, flush handlers before step-ca
systemd-resolved was only disabled for bind/unbound/powerdns_recursor, so a
pure PowerDNS-server host kept it running on 127.0.0.53:53. Include
powerdns_server in that condition.

Also flush pending service handlers (restart_named/unbound/pdns) before the
step-ca import so the local resolver is actually up when the root CA URL is
fetched.
2026-10-22 18:31:58 +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 52f2ac45e5 nameserver: fix bind statistics options (literal escapes broke named-checkconf)
The lineinfile 'line' used YAML single quotes, so '\t' and '\n' were written
literally, producing 'unknown option' errors from named-checkconf. Replace with
a blockinfile block, remove the legacy literal-escape lines on next run, and
keep validation via the named-checkconf wrapper.
2026-10-22 16:48:12 +02:00
rene d0fe8afddc fix bind snmpd validation, wireguard conditional, and step-ca import ordering
- nameserver: add named-checkconf wrapper that validates the edited fragment in
  the context of the full named.conf (lineinfile validate needs %s; isolated
  check fails on include-based configs) and surfaces BIND diagnostics on stderr
- base: make wireguard 'when' boolean-correct (ipaddr('public') returns a string)
- base/nameserver: skip step-ca import in base on nameservers (resolv.conf not
  yet 127.0.0.1) and import it in the nameserver play after DNS setup
2026-10-22 16:21:49 +02:00
rene 598506f58d fix base PPA cleanup, marker file post-run, and bind snmpd validation
- base: drop leftover apt_repository removal + equivalents debug (undefined on Ubuntu resolute), clean ansible.list via file module for all debian-based distros
- local.yml: default ansible_pull_marker_file in post-run so a cooldown end_play does not abort the run
- nameserver: validate named config against main named.conf instead of isolated %s; add named_conf to debian/archlinux vars
2026-10-22 15:58:01 +02:00
rene b5b1d926be new settings 2026-10-22 15:42:07 +02:00
rene 450841e15c removed some systems from backup 2026-10-14 19:38:52 +02:00
rene ef065f1ddf Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2026-10-05 11:42:04 +02:00
rene 7804934a8a cleaned up list of backup sources 2026-10-05 11:40:09 +02:00
rene 966020b273 update SSH known_hosts 2026-10-05 11:39:23 +02:00
rene a15f96b634 update SSH known_hosts 2026-10-03 19:05:24 +02:00
rene 258f196a61 cleaned up list of backup sources 2026-10-02 17:24:23 +02:00
rene 0de1ec1c32 new hashed file with all possible writings of hostname 2026-10-01 09:09:39 +02:00
rene 77831e1dd1 updated list for hosts to backup 2026-09-30 20:25:13 +02:00
rene f4ab1054a6 new hashed file with all possible writings of hostname 2026-09-30 20:08:02 +02:00
rene 68674b388a new hashed file with all possible writings of hostname 2026-09-30 20:06:57 +02:00
rene 4b7e8d25ed for samba ADs 2026-09-24 09:11:38 +02:00
rene d0641c80d5 new hashed file with all possible writings of hostname 2026-09-22 18:51:54 +02:00
rene cd535c9502 new hashed file with all possible writings of hostname 2026-09-22 18:35:46 +02:00
rene ee2d858900 new hashed file with all possible writings of hostname 2026-09-22 18:01:41 +02:00
rene 7d316d0b11 new hashed file with all possible writings of hostname 2026-09-22 17:56:48 +02:00
rene 1037e93312 new hashed file with all possible writings of hostname 2026-09-22 17:08:34 +02:00
rene 515074cf59 new hashed file with all possible writings of hostname 2026-09-22 17:03:18 +02:00
rene 291239621d new hashed file with all possible writings of hostname 2026-09-22 16:44:52 +02:00
rene e880aba8c4 new hashed file with all possible writings of hostname 2026-09-15 09:14:55 +02:00
rene 82adfbf188 added additional models to ollama 2026-08-05 15:30:22 +02:00
rene 40c2432adf remove ansible launchpad PPA from base setup (broken on Debian 13) 2026-08-05 13:21:14 +02:00
rene 6a3a1020db added ollama role and host 2026-08-05 11:27:50 +02:00
rene 25593dafa0 added 'purge' to debian apt actions 2026-07-22 14:06:20 +02:00
rene f4b01c2f4a added new host 2026-07-17 15:41:33 +02:00
rene 87c526058a Option '--files-from' is needed for my backups 2026-07-15 09:21:38 +02:00
rene 0e70c4b2ee made a more secure validation script for rsync 2026-06-30 16:46:07 +02:00
rene 2f0ad93d75 Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2026-06-25 14:58:45 +02:00
rene 4edc96e494 rearranged hosts and added new server 2026-06-25 14:56:09 +02:00
rene a999134b99 added lognavigator lnav to the utilities 2026-04-20 20:34:41 +02:00
rene a7c902f3c6 corrected some artifacts 2026-01-30 09:10:05 +01:00
rene 0b32a11fab added 'apt autoclean' to pre-run tasks for debian and likes 2026-01-29 11:08:27 +01:00
rene 48689bc989 changed php version for nextcloud 2026-01-28 18:30:02 +01:00
rene ddb1b1adac use other methods 2026-01-26 15:14:18 +01:00
rene 007488952d removed one backup host 2026-01-26 14:05:23 +01:00
rene 17e7c879cc new host 2026-01-26 13:31:23 +01:00
rene bdd8ace086 new hashed file with all possible writings of hostname 2026-01-25 10:15:16 +01:00
rene 9bf90e14d0 removed dir 2026-01-25 10:12:52 +01:00
rene 5c5aa7c760 added command to sudoers 2026-01-23 16:50:47 +01:00