homeserver/friedhof/mgrote_dnsmasq_adblocker/mgrote.dnsmasq_adblocker/tasks/services.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

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