Michael Grote
7a24089031
Reviewed-on: #584 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
24 lines
559 B
YAML
24 lines
559 B
YAML
---
|
|
- name: Make sure systemd-resolved is running
|
|
ansible.builtin.systemd:
|
|
state: started
|
|
masked: false
|
|
name: systemd-resolved
|
|
|
|
- name: template /etc/systemd/resolved.conf
|
|
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
|
|
ansible.builtin.template:
|
|
src: resolv.conf.j2
|
|
dest: /etc/resolv.conf
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
notify: restart systemd-resolved
|