diff --git a/basics.yml b/basics.yml index 8419a98..1b08048 100644 --- a/basics.yml +++ b/basics.yml @@ -109,6 +109,13 @@ update_cache: yes install_recommends: no when: ansible_distribution_release is match("bookworm") + register: resolved + + - name: Restart systemd-resolved + service: + name: systemd-resolved + state: restarted + when: resolved.changed - name: set testing repo pinning for Debian 12 - bookworm (needed by dnscrypt-proxy) blockinfile: