fixed dns meme
This commit is contained in:
parent
9493f94e52
commit
99e1570f02
4
ansible/files/resolv.conf
Normal file
4
ansible/files/resolv.conf
Normal file
@ -0,0 +1,4 @@
|
||||
# this is very good
|
||||
nameserver 152.66.208.1
|
||||
nameserver 152.66.208.29
|
||||
nameserver 8.8.8.8
|
24
ansible/tasks/fix-dns-resolution.yaml
Normal file
24
ansible/tasks/fix-dns-resolution.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user