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.
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.
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.
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.
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.
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.
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.
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.
- 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
- 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