100 Commits
Author SHA1 Message Date
rene 4691eac503 disabled portainer installation 2026-11-02 18:34:24 +01:00
rene 42117f4b89 hosts 2026-11-02 18:20:41 +01:00
rene 27ba011f68 set compatibility and order for tls chain 2026-11-02 16:42:37 +01:00
rene 31b03f3edc disabled "configure_fetchmail" 2026-11-02 16:00:34 +01:00
rene 38bc9248f8 migrated to smtpd_tls_chain_files 2026-11-02 15:52:02 +01:00
rene 576291bd46 switched from btree to lmdb 2026-11-02 15:45:19 +01:00
rene 9b4fb2ea77 quoting 2026-11-02 15:19:11 +01:00
rene 5fbb67696b switched from hash to lmdb 2026-11-02 14:42:55 +01:00
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 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
rene 223821c73f new backup list 2026-01-23 12:09:56 +01:00
rene dbe681acc7 new hashed file with all possible writings of hostname 2026-01-23 12:06:40 +01:00
rene 3468545ed8 new hashed file with all possible writings of hostname 2026-01-23 09:52:14 +01:00
rene 0e46afb406 defined some excludes for backup 2026-01-23 09:48:15 +01:00
rene 17b1d14c10 adde new host 2026-01-23 09:47:47 +01:00
rene aa6da6c59e fixed installation of JItsimeet 2026-01-22 12:32:35 +01:00
rene 543570bbd1 moved mewimeet to server group and adjusted node version 2026-01-22 12:12:27 +01:00
rene d8992082b2 added new hosts to be backed up 2026-01-22 12:11:53 +01:00
rene 40ba445f76 changed and reordered list 2026-01-22 10:25:09 +01:00
rene dbbe527b5e new hashed file with all possible writings of hostname 2026-01-22 09:47:49 +01:00
rene 6e5b0ed19f changed host name 2026-01-21 18:20:59 +01:00
rene ad53bad762 new host 2026-01-21 17:34:45 +01:00
rene 0d847f760e reworked by Gemini 2026-01-21 17:24:20 +01:00
rene a82783dd11 new host 2026-01-21 10:17:31 +01:00
rene 4822f6274a set valid defaults for searxng 2026-01-20 22:35:17 +01:00
rene 237449f71a new hashed file with all possible writings of hostname 2026-01-20 22:19:29 +01:00
rene 45e2dce9b2 renamed keys 2026-01-19 13:15:29 +01:00
rene f2cd0ec246 removed hosts that need no backup 2026-01-15 16:07:01 +01:00
rene 8cb54663a8 replaced pause with message 2026-01-12 15:34:29 +01:00
rene 4c79171d58 syntax 2026-01-12 15:30:19 +01:00
rene 8c10cf170e syntax 2026-01-12 15:18:55 +01:00
rene 46ff97fe93 aur helper 2026-01-12 15:08:08 +01:00
rene e76226c309 changed hostname 2026-01-12 15:07:02 +01:00
rene ca87edbfb1 aur helper 2026-01-12 14:31:06 +01:00
rene 24f5e5b221 switched to new facts-syntax 2026-01-12 13:58:58 +01:00
rene 9fd07d57a4 switched to new facts-syntax 2026-01-12 12:31:24 +01:00
rene 037b998219 typo 2026-01-09 18:30:45 +01:00
rene 2f70ab7188 Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2026-01-09 18:29:39 +01:00
rene 7720c60491 new host 2026-01-09 18:29:26 +01:00
rene e7d2d232a8 Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2025-12-12 14:40:47 +01:00
rene e4c4d7be8c add backup config for endor 2025-12-12 14:39:54 +01:00
rene ab9f681c0d added tools for powerdns 2025-12-11 09:31:21 +01:00
rene b2915b537b Merge branch 'master' of ssh://gitea.mewissen.site:22422/rene/ansible-pull 2025-12-10 19:38:53 +01:00
rene 8c5b0a1ad3 added and removed cronjobs 2025-12-10 19:38:41 +01:00
rene 789eeeb8c9 paths removed from backup 2025-12-09 16:43:47 +01:00
rene 7c359f2070 new path 2025-12-08 11:25:11 +01:00
rene 2365f3644c changed path 2025-12-03 09:51:34 +01:00
rene b170189008 new hosts 2025-12-02 12:02:53 +01:00
rene 158b836626 new host 2025-12-02 11:56:47 +01:00
rene 2aa5146af2 disabled installation because cimmunity package not available at this stage 2025-12-01 11:18:18 +01:00
rene 26a3000e88 New version of Caddy installation 2025-11-28 11:21:31 +01:00