homeserver/roles/mgrote.dnsmasq_adblocker/tasks/services.yml
mg fac0c68c5c Ersatz PiHole durch dnsmasq direkt (#298)
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#298
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
2022-01-15 11:19:04 +01:00

18 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