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