24 lines
466 B
YAML
24 lines
466 B
YAML
|
- 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
|