homeserver/roles/mgrote.dnsmasq_adblocker/tasks/services.yml

19 lines
429 B
YAML
Raw Normal View History

---
- 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