mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 02:58:29 +03:00
Remove search and nameserver entries from resolvconf base
These items conflict when they are provided also in head file Fixes: #456
This commit is contained in:
@@ -108,6 +108,18 @@
|
|||||||
- timeout:2
|
- timeout:2
|
||||||
- attempts:2
|
- attempts:2
|
||||||
|
|
||||||
|
- name: Remove search and nameserver options from resolvconf base
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/resolvconf/resolv.conf.d/base
|
||||||
|
state: absent
|
||||||
|
regexp: "^{{ item }}.*$"
|
||||||
|
backup: yes
|
||||||
|
follow: yes
|
||||||
|
with_items:
|
||||||
|
- search
|
||||||
|
- nameserver
|
||||||
|
when: resolvconf.rc == 0
|
||||||
|
|
||||||
- name: disable resolv.conf modification by dhclient
|
- name: disable resolv.conf modification by dhclient
|
||||||
copy: src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/znodnsupdate mode=0755
|
copy: src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/znodnsupdate mode=0755
|
||||||
notify: Dnsmasq | restart network
|
notify: Dnsmasq | restart network
|
||||||
|
|||||||
Reference in New Issue
Block a user