homeserver/roles/mgrote_systemd_resolved/tasks/main.yml
Michael Grote 8fe2c55d25 setup blocky (#617)
Reviewed-on: #617
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-11-29 12:22:34 +01:00

27 lines
604 B
YAML

---
- name: Make sure systemd-resolved is running
become: true
ansible.builtin.systemd:
state: started
masked: false
name: systemd-resolved
- name: template /etc/systemd/resolved.conf
become: true
ansible.builtin.template:
src: resolved.conf.j2
dest: /etc/systemd/resolved.conf
owner: root
group: root
mode: "0644"
notify: restart systemd-resolved
- name: template /etc/resolv.conf
become: true
ansible.builtin.template:
src: resolv.conf.j2
dest: /etc/resolv.conf
owner: root
group: root
mode: "0644"
notify: restart systemd-resolved