Added dns fixer

This commit is contained in:
Pünkösd Marcell 2021-11-09 23:13:21 +01:00
parent 1ca623a038
commit abcd07666c
2 changed files with 13 additions and 1 deletions

View File

@ -6,6 +6,11 @@
async: 45
poll: 0
- name: "restartkubelet"
systemd:
name: kubelet
state: restarted
tasks:
- name: "do apt stuff"
import_tasks: tasks/apt.yaml

View File

@ -21,4 +21,11 @@
src: resolv.conf
dest: /etc/resolv.conf
mode: 644
owner: root
owner: root
- name: fix kubelet wrong resolver
lineinfile:
path: /etc/kubernetes/kubelet-config.yaml
regexp: '^resolvConf:'
line: 'resolvConf: "/etc/resolv.conf"'
notify: restartkubelet