systemd-resolve disable requires symlink change.
authorLuke Hoersten <luke@hoersten.org>
Sun, 28 Jun 2020 20:56:56 -0500
changeset 55 376bb71909a4
parent 54 1ea4f1c7c675
child 56 59e94b4a91a2
systemd-resolve disable requires symlink change.
adguard-home/tasks/main.yaml
--- a/adguard-home/tasks/main.yaml	Sun Jun 28 15:08:36 2020 -0500
+++ b/adguard-home/tasks/main.yaml	Sun Jun 28 20:56:56 2020 -0500
@@ -48,6 +48,13 @@
   become: yes
   systemd: name="systemd-resolved.service" enabled="no" state="stopped"
 
+- name: replace systemd-resolved conf stub
+  become: yes
+  file:
+    src:  "/run/systemd/resolve/resolv.conf"
+    dest: "/etc/resolv.conf"
+    state: "link"
+
 - name: ensure adguard home is started
   become: yes
   systemd: name="AdGuardHome.service" enabled="yes" state="started"