src.nth.io/

summaryrefslogtreecommitdiff
path: root/adguard-home/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2023-01-08 12:57:34 -0600
committerLuke Hoersten <[email protected]>2023-01-08 12:57:34 -0600
commitf74c8bd36c7796b94ed30cea2f748a14da557e14 (patch)
tree53c868ffd07b4b72d8026bda22bef937c2ec2c7d /adguard-home/tasks
parentd510281ef023e4fea532f1ec2c7792c91bf5a583 (diff)
Updated versions.
Diffstat (limited to 'adguard-home/tasks')
-rw-r--r--adguard-home/tasks/main.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/adguard-home/tasks/main.yaml b/adguard-home/tasks/main.yaml
index 8c0716b..f9220bf 100644
--- a/adguard-home/tasks/main.yaml
+++ b/adguard-home/tasks/main.yaml
@@ -56,6 +56,13 @@
dest: "/etc/resolv.conf"
when: sym.stat.islnk is defined and sym.stat.islnk
+- name: ensure nameserver is self
+ become: yes
+ lineinfile:
+ path: "/etc/resolv.conf"
+ regexp: "^nameserver"
+ line: "nameserver {{ansible_default_ipv4.address}}"
+
- name: disable systemd-resolved service
become: yes
systemd: name="systemd-resolved.service" enabled="no" state="stopped"