summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-06-30 13:13:35 +0200
committerAhmed Abdelhalim <[email protected]>2026-06-30 13:13:35 +0200
commitf77cd8a569c8e06c0d5e391a495e5d89d7375be6 (patch)
treec645b669d705f03326f302bc71efd1a97667591b /roles/bootstrap/tasks
parent2ecdcd710db370632b31356d29143aaab7ea8173 (diff)
Fix DNS resolution for ubuntu mac
For some unknown reason (ubuntu :shrug:) the /etc/resolv.conf file is created and breaks the network manager role for DNS resolution
Diffstat (limited to 'roles/bootstrap/tasks')
-rw-r--r--roles/bootstrap/tasks/install-ubuntu-mac.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/bootstrap/tasks/install-ubuntu-mac.yml b/roles/bootstrap/tasks/install-ubuntu-mac.yml
index 73c9854..23ead61 100644
--- a/roles/bootstrap/tasks/install-ubuntu-mac.yml
+++ b/roles/bootstrap/tasks/install-ubuntu-mac.yml
@@ -23,3 +23,12 @@
line: "wl"
create: true
mode: "0644"
+
+- name: "Symlink resolv.conf to systemd-resolved stub"
+ # NOTE: "Ensure DNS works in chroot" in install-ubuntu.yml copies the macOS
+ # resolv.conf which breaks internet access (DNS resolving).
+ ansible.builtin.file:
+ src: "/run/systemd/resolve/stub-resolv.conf"
+ dest: "{{ mnt_root_path }}/etc/resolv.conf"
+ state: link
+ force: true