- name: restart coredns
service:
name: coredns
state: restarted
enabled: true
- name: restart systemd-resolved
name: systemd-resolved