2016-08-18 15:14:52 +00:00
|
|
|
- name: Dnsmasq | restart network
|
2016-08-29 14:39:55 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- Dnsmasq | reload network
|
|
|
|
- Dnsmasq | update resolvconf
|
|
|
|
when: ansible_os_family != "CoreOS"
|
|
|
|
|
|
|
|
- name: Dnsmasq | reload network
|
2016-08-18 15:14:52 +00:00
|
|
|
service:
|
|
|
|
name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
network
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
|
|
|
state: restarted
|
2016-08-29 14:39:55 +00:00
|
|
|
when: ansible_os_family != "RedHat" and ansible_os_family != "CoreOS"
|
|
|
|
|
|
|
|
- name: Dnsmasq | update resolvconf
|
2016-09-27 09:54:12 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
|
|
|
- Dnsmasq | reload resolvconf
|
|
|
|
- Dnsmasq | reload kubelet
|
|
|
|
|
|
|
|
- name: Dnsmasq | reload resolvconf
|
2016-08-29 14:39:55 +00:00
|
|
|
command: /sbin/resolvconf -u
|
|
|
|
ignore_errors: true
|
2016-09-27 09:54:12 +00:00
|
|
|
|
|
|
|
- name: Dnsmasq | reload kubelet
|
|
|
|
service:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
2016-10-18 10:15:33 +00:00
|
|
|
sleep: "{{ kubelet_start_delay|int }}"
|
2016-09-27 09:54:12 +00:00
|
|
|
when: "{{ inventory_hostname in groups['kube-master'] }}"
|
|
|
|
ignore_errors: true
|