瀏覽代碼

add google dns fix

Grega Bremec 3 天之前
父節點
當前提交
63618e8dad
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      playbooks/00-general-pre-flight.yml

+ 8 - 0
playbooks/00-general-pre-flight.yml

@@ -13,4 +13,12 @@
           - ansible-collection-community-general
           - ansible-collection-containers-podman
         state: present
+
+    - name: Remove Google from resolv.conf
+      become: yes
+      ansible.builtin.lineinfile:
+        path: /etc/resolv.conf
+        line: "nameserver 8.8.8.8"
+        state: absent
+
 ...