2019-11-06 19:33:52 +08:00
|
|
|
---
|
2023-12-21 16:52:14 +08:00
|
|
|
- name: Create systemd-resolved drop-in directory
|
|
|
|
file:
|
|
|
|
state: directory
|
|
|
|
name: /etc/systemd/resolved.conf.d/
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0755"
|
2023-12-21 16:52:14 +08:00
|
|
|
|
|
|
|
- name: Write Kubespray DNS settings to systemd-resolved
|
2019-11-06 19:33:52 +08:00
|
|
|
template:
|
|
|
|
src: resolved.conf.j2
|
2023-12-21 16:52:14 +08:00
|
|
|
dest: /etc/systemd/resolved.conf.d/kubespray.conf
|
2019-11-06 19:33:52 +08:00
|
|
|
owner: root
|
|
|
|
group: root
|
2024-07-26 09:42:20 +08:00
|
|
|
mode: "0644"
|
2019-11-06 19:33:52 +08:00
|
|
|
notify: Preinstall | Restart systemd-resolved
|