homeserver/friedhof/mgrote_dnsmasq_adblocker/tasks/services.yml

19 lines
401 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: true
state: stopped
- name: template /etc/resolv.conf
ansible.builtin.template:
src: resolv.conf.j2
dest: /etc/resolv.conf
backup: true
notify: restart dnsmasq