19 lines
429 B
YAML
19 lines
429 B
YAML
|
---
|
||
|
- name: stop systemd-resolved service
|
||
|
ansible.builtin.systemd:
|
||
|
name: systemd-resolved
|
||
|
state: stopped
|
||
|
|
||
|
- name: mask systemd-resolved service
|
||
|
ansible.builtin.systemd:
|
||
|
name: systemd-resolved
|
||
|
masked: yes
|
||
|
state: stopped
|
||
|
|
||
|
- name: template /etc/resolv.conf
|
||
|
ansible.builtin.template:
|
||
|
src: resolv.conf.j2
|
||
|
dest: /etc/resolv.conf
|
||
|
backup: yes
|
||
|
notify: restart dnsmasq
|