fixed dns meme

This commit is contained in:
Pünkösd Marcell 2021-11-09 01:35:02 +01:00
parent 9493f94e52
commit 99e1570f02
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# this is very good
nameserver 152.66.208.1
nameserver 152.66.208.29
nameserver 8.8.8.8

View File

@ -0,0 +1,24 @@
- name: "disable systemd-resolved"
systemd:
name: systemd-resolved
state: stopped
enabled: no
masked: yes
- name: check if resolvconf linked
stat:
path: /etc/resolv.conf
register: link
- name: remove symlink
file:
path: /etc/resolv.conf
state: absent
when: link.stat.islnk is defined and link.stat.islnk
- name: set very good resolv config
copy:
src: resolv.conf
dest: /etc/resolv.conf
mode: 644
owner: root