summaryrefslogtreecommitdiffstats
path: root/roles/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bootstrap')
-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