Skip to content
Snippets Groups Projects
Commit 22e20b90 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: install systemd-resolved package on Debian 12 to make name resolution work on fresh installs

parent 7dd67781
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,10 @@
# is configured as expected.
#
# We seize the opportunity to switch over to `systemd-resolvd` as well, because
# it offers DNSSec etc., and, frankly, because we can.
# it offers DNSSec etc., and, frankly, because we can. Beginning with Debian
# 12 'Bookworm', systemd-resolved is a separate package that needs to be
# installed on the system, and is no longer included in the more generic
# systemd package.
#
# After these tasks have run, you can use `resolvectl` to check if the name
# resolution is configured as expected.
......@@ -31,6 +34,12 @@
# `systemd-networkd`. Now, '/etc/network/interfaces' will only contain the
# config for the loopback interface.
- name: install systemd-resolved
ansible.builtin.apt:
name: "systemd-resolved"
state: latest
when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '12'
- name: deploy network interface config
ansible.builtin.template:
src: "{{ item }}.j2"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment