|
|
@ -28,15 +28,6 @@ |
|
|
|
- '^127\.0\.0\.1(\s+){{ inventory_hostname }}.*' |
|
|
|
- '^::1(\s+){{ inventory_hostname }}.*' |
|
|
|
|
|
|
|
- name: install dnsmasq and bindr9utils |
|
|
|
apt: |
|
|
|
name: "{{ item }}" |
|
|
|
state: present |
|
|
|
update_cache: yes |
|
|
|
with_items: |
|
|
|
- dnsmasq |
|
|
|
- bind9utils |
|
|
|
when: inventory_hostname in groups['kube-master'] |
|
|
|
|
|
|
|
- name: ensure dnsmasq.d directory exists |
|
|
|
file: |
|
|
@ -54,13 +45,6 @@ |
|
|
|
- restart dnsmasq |
|
|
|
when: inventory_hostname in groups['kube-master'] |
|
|
|
|
|
|
|
- name: enable dnsmasq |
|
|
|
service: |
|
|
|
name: dnsmasq |
|
|
|
state: started |
|
|
|
enabled: yes |
|
|
|
when: inventory_hostname in groups['kube-master'] |
|
|
|
|
|
|
|
- name: update resolv.conf with new DNS setup |
|
|
|
template: |
|
|
|
src: resolv.conf.j2 |
|
|
|